From 8df43e0d1069ad444c225b3dc7ee25f9fc932093 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 23 Feb 2022 15:56:56 +0800 Subject: [PATCH] fix: addChildToParent > update > new data Signed-off-by: Wing-Kam Wong --- .../project/spreadsheet/components/virtualCell/hasManyCell.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue b/packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue index 863777c5e7..6a5e04a9db 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue @@ -362,8 +362,7 @@ export default { this.newRecordModal = false await this.childApi.update(id, { - [_cn]: - (this.hm && child[`${this.hm._rtn}Read`] && child[`${this.hm._rtn}Read`][this.hm && _cn]) || parseIfInteger(this.parentId) + [_cn]: parseIfInteger(this.parentId) }, { [_cn]: child[this.childForeignKey] })