Removing the redundant element in the render function

This commit is contained in:
Knut Sveidqvist
2024-08-22 10:11:13 +02:00
parent f1c066b68e
commit 47ac57be69
8 changed files with 8086 additions and 10259 deletions

View File

@@ -6,7 +6,6 @@ import { type TreeData, findCommonAncestor } from './find-common-ancestor.js';
export const render = async (
data4Layout: LayoutData,
svg: SVG,
element: any,
{
common,
getConfig,
@@ -739,7 +738,7 @@ export const render = async (
// @ts-ignore - ELK is not typed
const elk = new ELK();
const element = svg.select('g');
// Add the arrowheads to the svg
insertMarkers(element, data4Layout.markers, data4Layout.type, data4Layout.diagramId);