We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3ef70 commit 5c2f150Copy full SHA for 5c2f150
packages/core/src/utils/storage.ts
@@ -57,8 +57,23 @@ export class Storage {
57
}
58
59
// for lookup purposes
60
- const nodeIds = computed(() => reactiveState.nodes.map((n) => n.id))
61
- const edgeIds = computed(() => reactiveState.edges.map((e) => e.id))
+ const nodeIds = computed(() => {
+ const ids: string[] = []
62
+ for (const node of reactiveState.nodes) {
63
+ ids.push(node.id)
64
+ }
65
+
66
+ return ids
67
+ })
68
69
+ const edgeIds = computed(() => {
70
71
+ for (const edge of reactiveState.edges) {
72
+ ids.push(edge.id)
73
74
75
76
77
78
const getters = useGetters(reactiveState, nodeIds, edgeIds)
79
0 commit comments