From 540e1fd44081c873741d4fca94369825c91b7e6b Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Tue, 26 Nov 2024 05:46:52 +0000 Subject: [PATCH] fix(nc-gui): prevent unwanted form view api calls --- packages/nc-gui/components/smartsheet/Form.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue index 35b0d0a77f..753c0dde34 100644 --- a/packages/nc-gui/components/smartsheet/Form.vue +++ b/packages/nc-gui/components/smartsheet/Form.vue @@ -730,8 +730,8 @@ watch(submitted, (v) => { } }) -watch(view, (nextView) => { - if (nextView?.type === ViewTypes.FORM) { +watch(view, (nextView, oldView) => { + if (nextView?.type === ViewTypes.FORM && nextView?.id !== oldView?.id) { reloadEventHook.trigger() } })