Browse Source

fix(nc-gui): prevent unwanted form view api calls

Ramesh Mane 4 days ago
parent
commit
5effb1e4c3
  1. 4
      packages/nc-gui/components/smartsheet/Form.vue

4
packages/nc-gui/components/smartsheet/Form.vue

@ -730,8 +730,8 @@ watch(submitted, (v) => {
} }
}) })
watch(view, (nextView) => { watch(view, (nextView, oldView) => {
if (nextView?.type === ViewTypes.FORM) { if (nextView?.type === ViewTypes.FORM && nextView?.id !== oldView?.id) {
reloadEventHook.trigger() reloadEventHook.trigger()
} }
}) })

Loading…
Cancel
Save