jsob migrations

This commit is contained in:
lexx committed 2023-10-15 02:04:34 +03:00
1 parent a1d008de19
commit 965c9fc1c0
3 files changed
+9 -6

No files matched your search

+3
View File
@@ -4,6 +4,7 @@
import Icon from "../common/Icon.svelte";
import Preview from "../files/Preview.svelte";
import {getContext} from "svelte";
import {uniqBy} from "lodash";
const channel = getContext("channel");
export let graph;
@@ -36,6 +37,7 @@
}
if (arecord) {
carry[schemaField].nodes.push(arecord);
carry[schemaField].nodes = uniqBy(carry[schemaField].nodes,"id");
}
return carry;
}, {});
@@ -63,6 +65,7 @@
});
if (arecord) {
carry[schemaField].nodes.push(arecord);
carry[schemaField].nodes = uniqBy(carry[schemaField].nodes,"id");
}
return carry;