From 2cc04da76cefa7bad93dfd083fff16cdc7d14f23 Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 27 Jan 2025 12:27:58 +0100 Subject: [PATCH] feat: refs #8387 refs#8387 change request --- src/components/CrudModel.vue | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/components/CrudModel.vue b/src/components/CrudModel.vue index 62e4ed9df..d569dfda1 100644 --- a/src/components/CrudModel.vue +++ b/src/components/CrudModel.vue @@ -154,18 +154,14 @@ function filter(value, update, filterOptions) { } async function onSubmit() { - try { - if (!hasChanges.value) { - return quasar.notify({ - type: 'negative', - message: t('globals.noChanges'), - }); - } - isLoading.value = true; - await saveChanges($props.saveFn ? formData.value : null); - } catch (e) { - throw e; + if (!hasChanges.value) { + return quasar.notify({ + type: 'negative', + message: t('globals.noChanges'), + }); } + isLoading.value = true; + await saveChanges($props.saveFn ? formData.value : null); } async function onSubmitAndGo() {