fix: update destroy method to return back instead of redirecting to index
This commit is contained in:
parent
bead96499f
commit
579f2346f7
@ -48,6 +48,6 @@ public function destroy(AcademicTerm $AcademicTerm): RedirectResponse
|
|||||||
|
|
||||||
Inertia::flash('toast', ['type' => 'success', 'message' => 'Periode akademik berhasil dihapus.']);
|
Inertia::flash('toast', ['type' => 'success', 'message' => 'Periode akademik berhasil dihapus.']);
|
||||||
|
|
||||||
return to_route('admin.master.academic-terms.index');
|
return back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user