From ebdc8cb021a252d7ec9b1228006c6ac62be07393 Mon Sep 17 00:00:00 2001 From: Mert Ersoy Date: Sat, 2 Apr 2022 10:40:29 +0300 Subject: [PATCH] fix: changed default value for cellSaved to true for intended default behaviour --- packages/nc-gui/plugins/ncApis/gqlApi.js | 2 +- packages/nc-gui/plugins/ncApis/restApi.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/plugins/ncApis/gqlApi.js b/packages/nc-gui/plugins/ncApis/gqlApi.js index 9da22b1f8d..1009142a07 100644 --- a/packages/nc-gui/plugins/ncApis/gqlApi.js +++ b/packages/nc-gui/plugins/ncApis/gqlApi.js @@ -176,7 +176,7 @@ export default class GqlApi { return { list, count } } - async update(id, data, oldData, cellSaved = false, params = {}) { + async update(id, data, oldData, cellSaved = true, params = {}) { const data1 = await this.post(`/nc/${this.$ctx.projectId}/v1/graphql`, { query: `mutation update($id:String!, $data:${this.tableCamelized}Input){ ${this.gqlMutationUpdateName}(id: $id, data: $data){${this.gqlReqBody}${await this.gqlRelationReqBody(params)}} diff --git a/packages/nc-gui/plugins/ncApis/restApi.js b/packages/nc-gui/plugins/ncApis/restApi.js index 3bd81f5708..eafd0df84c 100644 --- a/packages/nc-gui/plugins/ncApis/restApi.js +++ b/packages/nc-gui/plugins/ncApis/restApi.js @@ -64,7 +64,7 @@ export default class RestApi { return { list, count } } - async update(id, data, oldData, cellSaved = false) { + async update(id, data, oldData, cellSaved = true) { const res = await this.$axios({ method: 'put', url: `/nc/${this.$ctx.projectId}/api/v1/${this.table}/${encodeURIComponent(id)}`,