From eeecfb77871ec6f74fd1d6f75b9ebd79ec3fbf66 Mon Sep 17 00:00:00 2001 From: Sam Lavigne Date: Tue, 29 Aug 2023 01:12:39 -0400 Subject: [PATCH] just a few notes --- src/stores.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stores.js b/src/stores.js index 58f3725..0efb9ff 100644 --- a/src/stores.js +++ b/src/stores.js @@ -36,8 +36,10 @@ export const previewCommand = derived([edges, nodes], ([$edges, $nodes]) => { const inputEdges = $edges.filter((e) => inputIds.includes(e.source)); const outputs = $nodes.filter((n) => n.nodeType === "output"); + // create edge labels for each input inputs.forEach((inp, i) => (inputIdMap[inp.id] = i)); + // create edge labels for each filter function traverseEdges(edg, type) { const outEdges = $edges.filter((e) => e.source === edg.target && e.sourceHandle.includes(type));