From 0c7e2e2364f1c242c1fb95dba3dbe6f24aaa4cda Mon Sep 17 00:00:00 2001 From: rowanfr Date: Mon, 15 Jan 2024 20:48:29 -0600 Subject: [PATCH] Fixed linting error --- packages/mermaid/src/dagre-wrapper/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mermaid/src/dagre-wrapper/index.js b/packages/mermaid/src/dagre-wrapper/index.js index 57ff0d276..e0ac9507b 100644 --- a/packages/mermaid/src/dagre-wrapper/index.js +++ b/packages/mermaid/src/dagre-wrapper/index.js @@ -54,8 +54,7 @@ const recursiveRender = async (_elem, graph, diagramtype, id, parentCluster) => log.info('Cluster identified', v, node.width, graph.node(v)); // node.graph.setGraph applies the graph configurations such as nodeSpacing to subgraphs as without this the default values would be used // We override the `rankdir` variable to allow for the subgraph's direction to override the graphs direction in the subgraph - node.graph.setGraph({...graph.graph(), rankdir: node.graph.graph().rankdir}); - + node.graph.setGraph({ ...graph.graph(), rankdir: node.graph.graph().rankdir }); const o = await recursiveRender(nodes, node.graph, diagramtype, id, graph.node(v)); const newEl = o.elem;