From eb1a7a80c86ae7daa0d3177af4059575c6bed135 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 10 Sep 2022 15:11:30 +0530 Subject: [PATCH] chore(gui): reload ancestor data even intermediate record is new Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/expanded-form/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index d8d2879c8b..8243cfc9d9 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue @@ -87,9 +87,9 @@ const reloadParentRowHook = inject(ReloadRowDataHookInj, createEventHook()) const reloadHook = createEventHook() reloadHook.on(() => { + reloadParentRowHook?.trigger() if (isNew.value) return loadRow() - reloadParentRowHook?.trigger() }) provide(ReloadRowDataHookInj, reloadHook)