From 3b88c4a0a3b4f344d2fbc3c10d96714f6f701bc8 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 7 Oct 2022 11:52:12 +0530 Subject: [PATCH] fix(nc-gui): validation error handling Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nc-gui/components/smartsheet/Form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue index 4a7f74c53d..ae58564208 100644 --- a/packages/nc-gui/components/smartsheet/Form.vue +++ b/packages/nc-gui/components/smartsheet/Form.vue @@ -114,7 +114,7 @@ async function submitForm() { await formRef.value?.validateFields() } catch (e: any) { e.errorFields.map((f: Record) => message.error(f.errors.join(','))) - return + if (e.errorFields.length) return } const insertedRowData = await insertRow(formState)