Custom Bulkaction generate duplicate queries

Hi i'm trying to add a custom bulkaction to a products table but i'm getting duplicate queries
here's my code
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('name'),
])
->bulkActions([
Tables\Actions\BulkAction::make('bulk_updates')
->action(function ($livewire, $data, $records) {
//...
})
->form(
function ($records, $data) {
return [
Forms\Components\Select::make('periode')
->label('Période')
->options(fn () => Periode::pluck('name', 'id'))
->required(),
];
}
),
]);
}
am i doing something wrong here ?
sc.png
Was this page helpful?