Browse Source

refactor(gui): specify type while initializing hook

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3776/head
Pranav C 2 years ago
parent
commit
3554401733
  1. 4
      packages/nc-gui/components/smartsheet/Row.vue

4
packages/nc-gui/components/smartsheet/Row.vue

@ -35,9 +35,9 @@ watch(isNew, async (nextVal, prevVal) => {
const reloadViewDataTrigger = inject(ReloadViewDataHookInj)!
// override reload trigger and use it to reload row
const reloadHook = createEventHook()
const reloadHook = createEventHook<boolean | void>()
reloadHook.on((shouldShowLoading: boolean) => {
reloadHook.on((shouldShowLoading) => {
if (isNew.value) return
reloadViewDataTrigger?.trigger(shouldShowLoading)
})

Loading…
Cancel
Save