Browse Source

fix: update only when inserted row saved

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/1620/head
mertmit 3 years ago
parent
commit
efddd45e2f
  1. 3
      packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue
  2. 2
      packages/nocodb/src/lib/noco/meta/api/dataApis/dataAliasApis.ts

3
packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue

@ -1074,6 +1074,7 @@ export default {
} }
} }
} }
this.syncCount()
}, },
// // todo: move debounce to cell since this will skip few update api call // // todo: move debounce to cell since this will skip few update api call
// onCellValueChangeDebounce: debounce(async function(col, row, column, self) { // onCellValueChangeDebounce: debounce(async function(col, row, column, self) {
@ -1248,8 +1249,6 @@ export default {
this.expandRow(data.length - 1, rowMeta) this.expandRow(data.length - 1, rowMeta)
} }
} }
await this.save()
this.syncCount()
}, },
async handleKeyDown({ async handleKeyDown({

2
packages/nocodb/src/lib/noco/meta/api/dataApis/dataAliasApis.ts

@ -153,7 +153,7 @@ router.get(
); );
router.get( router.get(
'/data/:orgs/:projectName/:tableName/views/:viewName/count', '/data/:orgs/:projectName/:tableName/views/:viewName/count',
ncMetaAclMw(dataCount) ncMetaAclMw(dataCount, 'dataCount')
); );
router.post( router.post(

Loading…
Cancel
Save