From b49afeefc2bb2b9c80e269a6d161385542c80d7f Mon Sep 17 00:00:00 2001 From: yari-dewalt Date: Wed, 23 Oct 2024 12:06:59 -0700 Subject: [PATCH] Cleanup --- packages/mermaid/src/diagrams/er/erDb.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mermaid/src/diagrams/er/erDb.ts b/packages/mermaid/src/diagrams/er/erDb.ts index ccf543797..36b9a3eea 100644 --- a/packages/mermaid/src/diagrams/er/erDb.ts +++ b/packages/mermaid/src/diagrams/er/erDb.ts @@ -135,10 +135,10 @@ export const getData = function () { } } - let cnt = 0; + let count = 0; for (const relationship of relationships) { const edge: Edge = { - id: getEdgeId(relationship.entityA, relationship.entityB, { prefix: 'id', counter: cnt++ }), + id: getEdgeId(relationship.entityA, relationship.entityB, { prefix: 'id', counter: count++ }), type: 'normal', start: relationship.entityA, end: relationship.entityB, @@ -179,7 +179,7 @@ export const addClass = function (ids: string[], style: string[]) { if (style) { style.forEach(function (s) { if (/color/.exec(s)) { - const newStyle = s.replace('fill', 'bgFill'); // .replace('color', 'fill'); + const newStyle = s.replace('fill', 'bgFill'); classNode.textStyles.push(newStyle); } classNode.styles.push(s);