update
This commit is contained in:
@@ -277,7 +277,8 @@ function FahrzeugBuchungen() {
|
||||
setDetailBooking(null);
|
||||
loadData();
|
||||
} catch (e: unknown) {
|
||||
const msg = e instanceof Error ? e.message : 'Fehler beim Stornieren';
|
||||
const axiosErr = e as { response?: { data?: { message?: string } }; message?: string };
|
||||
const msg = axiosErr?.response?.data?.message || (e instanceof Error ? e.message : 'Fehler beim Stornieren');
|
||||
notification.showError(msg);
|
||||
} finally {
|
||||
setCancelLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user