Browse Source

fix(gui): provide reload view data hook as fallback to reload view data

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

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

@ -12,6 +12,7 @@ import {
OpenNewRecordFormHookInj,
PaginationDataInj,
ReadonlyInj,
ReloadRowDataHookInj,
ReloadViewMetaHookInj,
extractPkFromRow,
inject,
@ -149,6 +150,9 @@ onMounted(async () => {
await loadData()
await loadGalleryData()
})
// provide view data reload hook as fallback to row data reload
provide(ReloadRowDataHookInj, reloadViewDataHook)
</script>
<template>

Loading…
Cancel
Save