Skip to content

Commit fbbeec4

Browse files
author
Chri$
committed
fix:[LAR-32] remove unwork function to fix phpstan error
1 parent 7a651c1 commit fbbeec4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/Filament/Resources/ArticleResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public static function table(Table $table): Table
9797
->bulkActions([
9898
Tables\Actions\BulkActionGroup::make([
9999
BulkAction::make('approved')
100-
->visible(fn (?Collection $records) => ! empty($records) || $records?->contains(fn ($record) => $record->submitted_at))
101100
->label('Approuver la sélection')
102101
->icon('heroicon-s-check')
103102
->color('success')
@@ -109,7 +108,6 @@ public static function table(Table $table): Table
109108
->modalSubheading('Voulez-vous vraiment approuver ces articles ?')
110109
->modalButton('Confirmer'),
111110
BulkAction::make('declined')
112-
->visible(fn (?Collection $records) => ! empty($records) || $records?->contains(fn ($record) => $record->submitted_at))
113111
->label('Décliner la sélection')
114112
->icon('heroicon-s-x-mark')
115113
->color('warning')

0 commit comments

Comments
 (0)