diff --git a/src/FilterPicker.svelte b/src/FilterPicker.svelte index 8200a80..4a5e1ef 100644 --- a/src/FilterPicker.svelte +++ b/src/FilterPicker.svelte @@ -13,7 +13,7 @@ function selectFilters(sel) { if (sel == "video") { // return FILTERS.filter((f) => f.type.startsWith("V") || f.type.endsWith("V")); - return FILTERS.filter((f) => f.type[0] === "V" || (f.type[0] === "|") || f.type === "N->V"); + return FILTERS.filter((f) => f.type[0] === "V" || f.type === "N->V"); } else if (sel == "audio") { // return FILTERS.filter((f) => f.type.startsWith("A") || f.type.endsWith("A")); return FILTERS.filter((f) => f.type[0] === "A" || f.type === "N->A"); diff --git a/src/stores.js b/src/stores.js index 82dbad4..0f3ad98 100644 --- a/src/stores.js +++ b/src/stores.js @@ -178,7 +178,9 @@ nodes.subscribe(($nodes) => { edges.set(newEdges); }); -export function addNode(data, type) { +export function addNode(_data, type) { + const data = JSON.parse(JSON.stringify(_data)); + let ins = []; let outs = [];