Browse Source

chore(gui): reload ancestor data even intermediate record is new

Signed-off-by: Pranav C <pranavxc@gmail.com>
fix/save-rows-on-tab-switch
Pranav C 2 years ago
parent
commit
eb1a7a80c8
  1. 2
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

2
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -87,9 +87,9 @@ const reloadParentRowHook = inject(ReloadRowDataHookInj, createEventHook())
const reloadHook = createEventHook() const reloadHook = createEventHook()
reloadHook.on(() => { reloadHook.on(() => {
reloadParentRowHook?.trigger()
if (isNew.value) return if (isNew.value) return
loadRow() loadRow()
reloadParentRowHook?.trigger()
}) })
provide(ReloadRowDataHookInj, reloadHook) provide(ReloadRowDataHookInj, reloadHook)

Loading…
Cancel
Save