Browse Source

fix(gui-v2): remove loadAggCommentsCount as it is included in loadData already

pull/3247/head
Wing-Kam Wong 2 years ago
parent
commit
8d16556495
  1. 4
      packages/nc-gui-v2/components/smartsheet/Grid.vue

4
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -87,7 +87,6 @@ const {
deleteRow, deleteRow,
deleteSelectedRows, deleteSelectedRows,
selectedAllRecords, selectedAllRecords,
loadAggCommentsCount,
removeLastEmptyRow, removeLastEmptyRow,
} = useViewData(meta, view as any, xWhere) } = useViewData(meta, view as any, xWhere)
@ -106,7 +105,6 @@ provide(ReadonlyInj, !isUIAllowed('xcDatatableEditable'))
reloadViewDataHook?.on(async () => { reloadViewDataHook?.on(async () => {
await loadData() await loadData()
loadAggCommentsCount()
}) })
const expandForm = (row: Row, state?: Record<string, any>) => { const expandForm = (row: Row, state?: Record<string, any>) => {
@ -128,7 +126,7 @@ const selectCell = (row: number, col: number) => {
watch( watch(
() => (view?.value as any)?.id, () => (view?.value as any)?.id,
async (n?: string, o?: string) => { async (n?: string, o?: string) => {
if (n && n !== o) { if (n && o && n !== o) {
await loadData() await loadData()
} }
}, },

Loading…
Cancel
Save