Browse Source

refactor: primary column set api corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 2 years ago
parent
commit
6bec85ad68
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/headerCell.vue

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

@ -196,7 +196,7 @@ export default {
async setAsPrimaryValue() {
// todo: pass only updated fields
try {
await this.$api.dbTableColumn.primaryColumnSet(this.meta.id, this.column.id)
await this.$api.dbTableColumn.primaryColumnSet(this.column.id)
this.$toast.success('Successfully updated as primary column').goAway(3000)
} catch (e) {
console.log(e)

Loading…
Cancel
Save