From b1fba037dfef18648c2ce50b96f0bd96cda2d202 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 16 Apr 2022 15:29:50 +0530 Subject: [PATCH] fix: update hasmany record unlink method with new sdk functions re #1695 Signed-off-by: Pranav C --- .../spreadsheet/components/virtualCell/hasManyCell.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 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 71fe16590c..c63bf7710a 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue @@ -342,11 +342,13 @@ export default { return } const id = this.childMeta.columns.filter(c => c.pk).map(c => child[c.title]).join('___') - await this.$api.data.nestedDelete( - this.meta.id, + await this.$api.dbTableRow.nestedDelete( + 'noco', + this.projectName, + this.meta.title, this.parentId, - this.column.id, - 'hm', + RelationTypes.HAS_MANY, + this.column.title, id )