remove orphan edges

This commit is contained in:
2023-11-29 17:10:15 +02:00
parent 2e5c80e1f6
commit ba25850191
11 changed files with 114 additions and 16 deletions
@@ -21,6 +21,7 @@
.map((edge) => {
return graph.records.find((increc) => increc.id === edge.target && record.id === edge.source);
}).filter((rec) => (rec?.id ? true : false)) ?? [];
let collections = channel.schemas.filter((aschema) =>
field.collections.includes(aschema.name)
);