Fix merge error

This commit is contained in:
Sidharth Vinod 2024-01-19 13:59:53 +05:30
parent c11093fa71
commit e8f655439d
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -141,11 +141,9 @@ export const addSingleLink = function (_start: string, _end: string, type: any)
edge.stroke = type.stroke;
edge.length = type.length > 10 ? 10 : type.length;
}
if (edge?.length && edge.length > 10) {
edge.length = 10;
}
if (edges.length < (config.maxEdges ?? 500)) {
log.info('abc78 pushing edge...');
log.info('Pushing edge...');
edges.push(edge);
} else {
throw new Error(
@ -156,9 +154,6 @@ You cannot set this config via configuration inside the diagram as it is a secur
You have to call mermaid.initialize.`
);
}
log.info('Pushing edge...');
edges.push(edge);
};
export const addLink = function (_start: string[], _end: string[], type: unknown) {