add & edit time rezerv

This commit is contained in:
2026-05-25 20:22:51 +03:30
parent 2a25727ef1
commit 833b7589d2
3 changed files with 34 additions and 5 deletions
@@ -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;
}