From 01c755b394eb251d3d798d69b8a1544a4aaea795 Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 20 Aug 2024 07:14:02 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Remove=20unused=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Resources/MenuResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/MenuResource.php b/src/Resources/MenuResource.php index 2ef62fe..8d4fb1e 100644 --- a/src/Resources/MenuResource.php +++ b/src/Resources/MenuResource.php @@ -65,7 +65,7 @@ public static function table(Table $table): Table ->label(__('filament-menu-builder::menu-builder.resource.name.label')), Tables\Columns\TextColumn::make('locations.location') ->label(__('filament-menu-builder::menu-builder.resource.locations.label')) - ->default($default = __('filament-menu-builder::menu-builder.resource.locations.empty')) + ->default(__('filament-menu-builder::menu-builder.resource.locations.empty')) ->color(fn (string $state) => array_key_exists($state, $locations) ? 'primary' : 'gray') ->formatStateUsing(fn (string $state) => $locations[$state] ?? $state) ->limitList(2)