Skip to content
Snippets Groups Projects
Commit 2d3f3c31 authored by Robin Leber's avatar Robin Leber
Browse files

FIX: build Pipes Elements with multiple editors

parent 25cd6bd8
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,7 @@ const makeValidConstName = (str) => {
};
const buildPipesElements = (pipeMapping) => {
console.log("### pipes: ", pipeMapping);
const incomingPipes = pipeMapping.filter(
(pipe) => pipe.pipeDirection === "in"
);
......@@ -129,8 +130,12 @@ const buildPipesElements = (pipeMapping) => {
(pipe) => pipe.pipeDirection === "out"
);
const incomingPipesElement = document.getElementById("incomingPipes");
const outgoingPipesElement = document.getElementById("outgoingPipes");
const incomingPipesElement = document.querySelector(
`#codeEditor${window.selectedFilter} #incomingPipes`
);
const outgoingPipesElement = document.querySelector(
`#codeEditor${window.selectedFilter} #outgoingPipes`
);
incomingPipesElement.innerHTML = "";
outgoingPipesElement.innerHTML = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment