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 return
} }
const id = this.childMeta.columns.filter(c => c.pk).map(c => child[c.title]).join('___') const id = this.childMeta.columns.filter(c => c.pk).map(c => child[c.title]).join('___')
await this.$api.data.nestedDelete( await this.$api.dbTableRow.nestedDelete(
this.meta.id, 'noco',
this.projectName,
this.meta.title,
this.parentId, this.parentId,
this.column.id, RelationTypes.HAS_MANY,
'hm', this.column.title,
id id
) )

Loading…
Cancel
Save