Browse Source

fix(nc-gui): validation error handling

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3669/head
Raju Udava 2 years ago
parent
commit
3b88c4a0a3
  1. 2
      packages/nc-gui/components/smartsheet/Form.vue

2
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<string, any>) => message.error(f.errors.join(',')))
return
if (e.errorFields.length) return
}
const insertedRowData = await insertRow(formState)

Loading…
Cancel
Save