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

Loading…
Cancel
Save