From 6bec85ad68161229b98f4870a8a3dddfd79b2d41 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 12 Apr 2022 14:03:23 +0530 Subject: [PATCH] refactor: primary column set api corrections Signed-off-by: Pranav C --- .../components/project/spreadsheet/components/headerCell.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)