diff --git a/packages/nc-gui-v2/components/smartsheet/Form.vue b/packages/nc-gui-v2/components/smartsheet/Form.vue index 4b21f989c2..dac7ebb61b 100644 --- a/packages/nc-gui-v2/components/smartsheet/Form.vue +++ b/packages/nc-gui-v2/components/smartsheet/Form.vue @@ -48,11 +48,16 @@ const view = inject(ActiveViewInj) const { loadFormView, insertRow, formColumnData, formViewData, updateFormView } = useViewData(meta, view as any) -const { showAll, hideAll, saveOrUpdate } = useViewColumns(view, meta as any, async () => { +const reloadEventHook = createEventHook() +provide(ReloadViewDataHookInj, reloadEventHook) + +reloadEventHook.on(async () => { await loadFormView() setFormData() }) +const { showAll, hideAll, saveOrUpdate } = useViewColumns(view, meta as any, async () => reloadEventHook.trigger()) + const { syncLTARRefs } = useProvideSmartsheetRowStore( meta, ref({