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

pipe binding, better naming

parent 9ba9a77d
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ export const handlePipeBinding = (pipeMapping, editor) => {
pipeMapping.forEach((pipe) => {
if (
editorCodeText.includes(
`const ${pipe.pipeName.replace(/\s+/g, "")} = "${pipe.pipeName}"`
`const ${pipe.pipeName.replace(/\s+/g, "")}Pipea = "${pipe.pipeName}"`
)
) {
return;
......@@ -34,7 +34,7 @@ export const handlePipeBinding = (pipeMapping, editor) => {
let transaction = editor.state.update({
changes: {
from: position,
insert: `\t\tconst ${pipe.pipeName.replace(/\s+/g, "")} = "${
insert: `\t\tconst ${pipe.pipeName.replace(/\s+/g, "")}Pipe = "${
pipe.pipeName
}"\n`,
},
......
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