Browse Source

fix(api): provide dummy hook as fallback for `ReloadRowDataHookInj`

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3569/head
Pranav C 2 years ago
parent
commit
f8e7c2ed0f
  1. 2
      packages/nc-gui/components/smartsheet/expanded-form/Header.vue
  2. 2
      packages/nc-gui/components/virtual-cell/HasMany.vue
  3. 2
      packages/nc-gui/components/virtual-cell/ManyToMany.vue

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

@ -17,7 +17,7 @@ const { isNew, syncLTARRefs } = useSmartsheetRowStoreOrThrow()
const { isUIAllowed } = useUIPermission()
const reloadTrigger = inject(ReloadRowDataHookInj)!
const reloadTrigger = inject(ReloadRowDataHookInj, createEventHook())
const save = async () => {
if (isNew.value) {

2
packages/nc-gui/components/virtual-cell/HasMany.vue

@ -30,7 +30,7 @@ const cellValue = inject(CellValueInj)!
const row = inject(RowInj)!
const reloadRowTrigger = inject(ReloadRowDataHookInj)!
const reloadRowTrigger = inject(ReloadRowDataHookInj, createEventHook())
const isForm = inject(IsFormInj)

2
packages/nc-gui/components/virtual-cell/ManyToMany.vue

@ -29,7 +29,7 @@ const row = inject(RowInj)!
const cellValue = inject(CellValueInj)!
const reloadRowTrigger = inject(ReloadRowDataHookInj)!
const reloadRowTrigger = inject(ReloadRowDataHookInj, createEventHook())
const isForm = inject(IsFormInj)

Loading…
Cancel
Save