F
Filament2mo ago
FELL

got error

when i use theme switcher sometimes got this error why?? this is widget code
namespace App\Filament\Resources\MomxmareblebiResource\Widgets; use Filament\Widgets\StatsOverviewWidget as BaseWidget; use Filament\Widgets\StatsOverviewWidget\Stat; use app\Models\Momxmareblebi; use Filament\Support\Enums\IconPosition; class Stats extends BaseWidget { protected static ?string $pollingInterval = 'null';//'60s'; protected function getStats(): array { return [ Stat::make('მომხმარებლები', '22') //Momxmareblebi::Count() ->description('სრული სია') ->descriptionIcon('heroicon-o-user-group',IconPosition::Before) ->chart([1,3,26,10,15,50,100]) ->color('primary'), Stat::make('აქტიური მომხმარებლები', 17000) ->description('ჩართული აბონენტების სია') ->descriptionIcon('heroicon-o-globe-alt',IconPosition::Before) ->chart([1,3,26,222,15,50,500]) ->color('success'), Stat::make('გაუქმებული მომხმარებლები', 2315) ->description('გაუქმებული აბონენტები') ->descriptionIcon('heroicon-o-x-circle',IconPosition::Before) ->chart([1,3,150,10,15,50,100]) ->color('danger') ]; } }
No description
4 Replies
FELL
FELL2mo ago
problem is in ->chart([1,3,26,10,15,50,100]) but why
LeandroFerreira
LeandroFerreira2mo ago
php artisan about --only=Filament what is the Filament version?
FELL
FELL2mo ago
v3.2.57
LeandroFerreira
LeandroFerreira2mo ago
Update Filament composer update -W