Browse Source

fix: changed default value for cellSaved to true for intended default behaviour

pull/1565/head
Mert Ersoy 3 years ago
parent
commit
ebdc8cb021
  1. 2
      packages/nc-gui/plugins/ncApis/gqlApi.js
  2. 2
      packages/nc-gui/plugins/ncApis/restApi.js

2
packages/nc-gui/plugins/ncApis/gqlApi.js

@ -176,7 +176,7 @@ export default class GqlApi {
return { list, count } 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`, { const data1 = await this.post(`/nc/${this.$ctx.projectId}/v1/graphql`, {
query: `mutation update($id:String!, $data:${this.tableCamelized}Input){ query: `mutation update($id:String!, $data:${this.tableCamelized}Input){
${this.gqlMutationUpdateName}(id: $id, data: $data){${this.gqlReqBody}${await this.gqlRelationReqBody(params)}} ${this.gqlMutationUpdateName}(id: $id, data: $data){${this.gqlReqBody}${await this.gqlRelationReqBody(params)}}

2
packages/nc-gui/plugins/ncApis/restApi.js

@ -64,7 +64,7 @@ export default class RestApi {
return { list, count } return { list, count }
} }
async update(id, data, oldData, cellSaved = false) { async update(id, data, oldData, cellSaved = true) {
const res = await this.$axios({ const res = await this.$axios({
method: 'put', method: 'put',
url: `/nc/${this.$ctx.projectId}/api/v1/${this.table}/${encodeURIComponent(id)}`, url: `/nc/${this.$ctx.projectId}/api/v1/${this.table}/${encodeURIComponent(id)}`,

Loading…
Cancel
Save