Browse Source

chore(gui-v2): remove `.value` access on formValidator

pull/2837/head
braks 2 years ago
parent
commit
4a3fb7a4a8
  1. 6
      packages/nc-gui-v2/components/dlg/ViewCreate.vue

6
packages/nc-gui-v2/components/dlg/ViewCreate.vue

@ -96,9 +96,11 @@ function init() {
}
async function onSubmit() {
const isValid = await formValidator.value?.validate()
const isValid = await formValidator?.validateFields()
if (isValid && form.type) {
if (!isValid) return
if (form.type) {
const _meta = unref(meta)
if (!_meta || !_meta.id) return

Loading…
Cancel
Save