fix: update back action to return to previous page or assignment index

This commit is contained in:
Yoga Pangestu 2026-04-06 00:01:07 +07:00
parent 57e32fed73
commit 6755e740a2

View File

@ -310,9 +310,10 @@ public function submit(): void
protected function getHeaderActions(): array
{
return [
BackAction::make()
->url(AssignmentResource::getUrl()),
->url(url()->previous() ?? AssignmentResource::getUrl('index')),
];
}
}