fix duplicate node param issue
This commit is contained in:
parent
5714ace735
commit
d93be90372
|
@ -13,7 +13,7 @@
|
||||||
function selectFilters(sel) {
|
function selectFilters(sel) {
|
||||||
if (sel == "video") {
|
if (sel == "video") {
|
||||||
// return FILTERS.filter((f) => f.type.startsWith("V") || f.type.endsWith("V"));
|
// 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") {
|
} else if (sel == "audio") {
|
||||||
// return FILTERS.filter((f) => f.type.startsWith("A") || f.type.endsWith("A"));
|
// return FILTERS.filter((f) => f.type.startsWith("A") || f.type.endsWith("A"));
|
||||||
return FILTERS.filter((f) => f.type[0] === "A" || f.type === "N->A");
|
return FILTERS.filter((f) => f.type[0] === "A" || f.type === "N->A");
|
||||||
|
|
|
@ -178,7 +178,9 @@ nodes.subscribe(($nodes) => {
|
||||||
edges.set(newEdges);
|
edges.set(newEdges);
|
||||||
});
|
});
|
||||||
|
|
||||||
export function addNode(data, type) {
|
export function addNode(_data, type) {
|
||||||
|
const data = JSON.parse(JSON.stringify(_data));
|
||||||
|
|
||||||
let ins = [];
|
let ins = [];
|
||||||
let outs = [];
|
let outs = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue