Skip to content

Commit

Permalink
Update getNavigationBadge to use parentheses in nested ternary expres…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
iRaziul authored Dec 2, 2024
1 parent 230ce61 commit 16bb8fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/MediaResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ public static function getCluster(): ?string
public static function getNavigationBadge(): ?string
{
return CuratorPlugin::get()->getNavigationCountBadge() ?
(Filament::hasTenancy() && Config::get('curator.is_tenant_aware')) ?
(Filament::hasTenancy() && Config::get('curator.is_tenant_aware') ?
static::getEloquentQuery()
->where(Config::get('curator.tenant_ownership_relationship_name') . '_id', Filament::getTenant()->id)
->count()
: number_format(static::getModel()::count())
: number_format(static::getModel()::count()))
: null;
}

Expand Down

0 comments on commit 16bb8fd

Please sign in to comment.