Browse Source

test: filter delete only if its parent

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5937/head
Raju Udava 2 years ago
parent
commit
018f69948a
  1. 1
      packages/nocodb/src/models/Column.ts

1
packages/nocodb/src/models/Column.ts

@ -760,6 +760,7 @@ export default class Column<T = any> implements ColumnType {
}); });
} }
for (const filter of filters) { for (const filter of filters) {
if (filter.fk_parent_id) continue;
await Filter.delete(filter.id, ncMeta); await Filter.delete(filter.id, ncMeta);
} }
} }

Loading…
Cancel
Save