Browse Source

refactor: virtual column delete api corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 2 years ago
parent
commit
771bccd12a
  1. 10
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listItems.vue
  2. 2
      packages/nc-gui/components/project/spreadsheet/components/virtualHeaderCell.vue

10
packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listItems.vue

@ -176,12 +176,10 @@ export default {
'noco', 'noco',
this.projectName, this.projectName,
this.meta.title, { this.meta.title, {
query: { limit: this.size,
limit: this.size, offset: this.size * (this.page - 1),
offset: this.size * (this.page - 1), ...this.queryParams,
...this.queryParams, where
where
}
})) }))
} }
} }

2
packages/nc-gui/components/project/spreadsheet/components/virtualHeaderCell.vue

@ -235,7 +235,7 @@ export default {
methods: { methods: {
async deleteColumn() { async deleteColumn() {
try { try {
await this.$api.dbTableColumn.delete(this.meta.id, this.column.id) await this.$api.dbTableColumn.delete(this.column.id)
this.$emit('saved') this.$emit('saved')
this.columnDeleteDialog = false this.columnDeleteDialog = false
} catch (e) { } catch (e) {

Loading…
Cancel
Save