Browse Source

refactor: virtual column delete api corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 3 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',
this.projectName,
this.meta.title, {
query: {
limit: this.size,
offset: this.size * (this.page - 1),
...this.queryParams,
where
}
limit: this.size,
offset: this.size * (this.page - 1),
...this.queryParams,
where
}))
}
}

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

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

Loading…
Cancel
Save