Duplicate queries with navigation badges + multi-tenancy

Hello, I'm trying to debug a duplicate query issue and see if this is intended behaviour or not.

Whenever I enable navigation badges on a resource, there seems to be two duplicate requests for every team/group the user is part of.

    protected static ?string $model = Video::class;

    public static function getNavigationBadge(): ?string
    {
        return static::$model::count();
    }

    public static function getNavigationBadgeColor(): ?string
    {
        return 'success';
    }
image.png
Was this page helpful?