Browse Source

fix: update hasmany record unlink method with new sdk functions

re #1695

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1697/head
Pranav C 2 years ago
parent
commit
b1fba037df
  1. 10
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/hasManyCell.vue

10
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
)

Loading…
Cancel
Save