Browse Source

fix: delete row api - ref: #1656

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1668/head
Wing-Kam Wong 3 years ago
parent
commit
f64ab47f7e
  1. 4
      packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue

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

@ -1160,7 +1160,7 @@ export default {
if (!id) {
return this.$toast.info('Delete not allowed for table which doesn\'t have primary Key').goAway(3000)
}
await this.$api.data.delete(this.meta.id, id)
await this.$api.dbViewRow.delete('noco', this.projectName, this.meta.title, this.selectedView.title, id)
}
this.data.splice(this.rowContextMenu.index, 1)
// this.$toast.success('Deleted row successfully').goAway(3000)
@ -1186,7 +1186,7 @@ export default {
if (!id) {
return this.$toast.info('Delete not allowed for table which doesn\'t have primary Key').goAway(3000)
}
await this.$api.data.delete(this.meta.id, id)
await this.$api.dbViewRow.delete('noco', this.projectName, this.meta.title, this.selectedView.title, id)
}
this.data.splice(row, 1)
} catch (e) {

Loading…
Cancel
Save