Browse Source

fix: addChildToParent > update > new data

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1333/head
Wing-Kam Wong 3 years ago
parent
commit
8df43e0d10
  1. 3
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue

3
packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue

@ -362,8 +362,7 @@ export default {
this.newRecordModal = false this.newRecordModal = false
await this.childApi.update(id, { await this.childApi.update(id, {
[_cn]: [_cn]: parseIfInteger(this.parentId)
(this.hm && child[`${this.hm._rtn}Read`] && child[`${this.hm._rtn}Read`][this.hm && _cn]) || parseIfInteger(this.parentId)
}, { }, {
[_cn]: child[this.childForeignKey] [_cn]: child[this.childForeignKey]
}) })

Loading…
Cancel
Save