From 94c89d87d1b7d134ce092db0853bcc549f082664 Mon Sep 17 00:00:00 2001 From: dervoeti Date: Thu, 21 Nov 2024 15:52:16 +0100 Subject: [PATCH] fix: mermaid graph generation --- frontend/src/core/observations/Mermaid_Dependencies.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/core/observations/Mermaid_Dependencies.tsx b/frontend/src/core/observations/Mermaid_Dependencies.tsx index e5f4ac9a9..62df36578 100644 --- a/frontend/src/core/observations/Mermaid_Dependencies.tsx +++ b/frontend/src/core/observations/Mermaid_Dependencies.tsx @@ -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++; }