Skip to content

Commit

Permalink
fix: mermaid graph generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dervoeti committed Nov 21, 2024
1 parent 94f7a3a commit 94c89d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/core/observations/Mermaid_Dependencies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const createMermaidGraph = (dependencies_str: string) => {
let i = 1;
for (const component of components) {
mermaid_content = mermaid_content.replaceAll(component + " ", "id" + i.toString() + '("' + component + '") ');
mermaid_content = mermaid_content.replaceAll(" " + component, " id" + i.toString() + '("' + component + '")');
mermaid_content = mermaid_content.replaceAll(" " + component + "\n", " id" + i.toString() + '("' + component + '")\n');
i++;
}

Expand Down

0 comments on commit 94c89d8

Please sign in to comment.