index remove graph

This commit is contained in:
2024-03-24 13:46:34 +02:00
parent d824e52dce
commit e74e1e7956
17 changed files with 107 additions and 155 deletions
+2 -9
View File
@@ -1,18 +1,11 @@
<script>
import Preview from "../../files/Preview.svelte";
export let record;
export let queryRecord;
export let field;
export let graph;
let filePreviews = queryRecord?._children[field.name];
let filePreviews = graph.edges?.filter((ed) => ed.field === field.name && ed.source === record.id)
.map((ed) => graph.records.find((r) => r.id === ed.target));
// if (edges[0]) {
// firstRecord = record._children.find((r) => r.data.id === edges[0].to);
// }
console.log(filePreviews)
</script>
<!-- {#if firstRecord}