add & edit time rezerv
This commit is contained in:
@@ -421,7 +421,12 @@ async function onSave() {
|
||||
message.value = 'ساعات پذیرش ذخیره شد.';
|
||||
await load();
|
||||
} catch (e) {
|
||||
error.value = e instanceof ApiError ? e.message : 'خطا در ذخیره';
|
||||
error.value =
|
||||
e instanceof ApiError
|
||||
? e.message
|
||||
: e instanceof Error
|
||||
? e.message
|
||||
: 'خطا در ذخیره';
|
||||
} finally {
|
||||
saving.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user