Browse Source

fix/Fixed form view column syncing issue

pull/3310/head
Muhammed Mustafa 2 years ago committed by Pranav C
parent
commit
14a83d562d
  1. 7
      packages/nc-gui-v2/components/smartsheet/Form.vue

7
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 { loadFormView, insertRow, formColumnData, formViewData, updateFormView } = useViewData(meta, view as any)
const { showAll, hideAll, saveOrUpdate } = useViewColumns(view, meta as any, async () => { const reloadEventHook = createEventHook<void>()
provide(ReloadViewDataHookInj, reloadEventHook)
reloadEventHook.on(async () => {
await loadFormView() await loadFormView()
setFormData() setFormData()
}) })
const { showAll, hideAll, saveOrUpdate } = useViewColumns(view, meta as any, async () => reloadEventHook.trigger())
const { syncLTARRefs } = useProvideSmartsheetRowStore( const { syncLTARRefs } = useProvideSmartsheetRowStore(
meta, meta,
ref({ ref({

Loading…
Cancel
Save