diff --git a/packages/nc-gui/components/project/spreadsheet/components/headerCell.vue b/packages/nc-gui/components/project/spreadsheet/components/headerCell.vue index 666e3d1b7b..199a09283d 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/headerCell.vue +++ b/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)