Skip to content

Commit

Permalink
fix: bulk activate and de-activate is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sriramkanakam87 committed Nov 27, 2024
1 parent 4f661a8 commit 13a0997
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/Filament/Dashboard/Resources/MoleculeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ public static function table(Table $table): Table
])
->action(function (array $data, Collection $records): void {
foreach ($records as $record) {
$record->active = ! $record->active;
$record->active ? $record->status = 'APPROVED' : $record->status = 'REVOKED';
$record->comment = prepareComment($data['reason']);
$record->save();
self::changeMoleculeStatus($record, $data['reason']);
}
})
Expand Down

0 comments on commit 13a0997

Please sign in to comment.