Browse Source

fix: pass values as array

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5901/head
Pranav C 1 year ago
parent
commit
8611b53a62
  1. 4
      packages/nocodb/src/services/data-table.service.ts

4
packages/nocodb/src/services/data-table.service.ts

@ -317,7 +317,7 @@ export class DataTableService {
await baseModel.addLinks({ await baseModel.addLinks({
colId: column.id, colId: column.id,
childIds: param.refRowIds, childIds: Array.isArray(param.refRowIds) ? param.refRowIds : [param.refRowIds],
rowId: param.rowId, rowId: param.rowId,
cookie: param.cookie, cookie: param.cookie,
}); });
@ -340,7 +340,7 @@ export class DataTableService {
await baseModel.removeLinks({ await baseModel.removeLinks({
colId: column.id, colId: column.id,
childIds: param.refRowIds, childIds: Array.isArray(param.refRowIds) ? param.refRowIds : [param.refRowIds],
rowId: param.rowId, rowId: param.rowId,
cookie: param.cookie, cookie: param.cookie,
}); });

Loading…
Cancel
Save