Browse Source

Merge pull request #4030 from nocodb/fix/watch-cb

pull/4053/head
Braks 2 years ago committed by GitHub
parent
commit
90d8bdee8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/nc-gui/components/smartsheet/Grid.vue

7
packages/nc-gui/components/smartsheet/Grid.vue

@ -14,12 +14,15 @@ import {
OpenNewRecordFormHookInj,
PaginationDataInj,
ReadonlyInj,
ReloadRowDataHookInj,
ReloadViewDataHookInj,
computed,
createEventHook,
extractPkFromRow,
inject,
isColumnRequiredAndNull,
message,
onBeforeUnmount,
onClickOutside,
onMounted,
provide,
@ -27,6 +30,7 @@ import {
useEventListener,
useGridViewColumnWidth,
useI18n,
useMetas,
useMultiSelect,
useRoute,
useSmartsheetStoreOrThrow,
@ -99,6 +103,8 @@ const {
removeRowIfNew,
} = useViewData(meta, view, xWhere)
const { getMeta } = useMetas()
const { loadGridViewColumns, updateWidth, resizingColWidth, resizingCol } = useGridViewColumnWidth(view)
const { selectCell, selectBlock, selectedRange, clearRangeRows, startSelectRange, selected } = useMultiSelect(
@ -350,7 +356,6 @@ watch(
if (next && next.id !== old?.id) {
// whenever tab changes or view changes save any unsaved data
if (old?.id) {
const { getMeta } = useMetas()
const oldMeta = await getMeta(old.fk_model_id!)
if (oldMeta) {
await saveOrUpdateRecords({

Loading…
Cancel
Save