mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
Remove unnecessary argument on findClosestParent call
This commit is contained in:
@@ -116,7 +116,7 @@ const drawCommits = (svg, commits, modifyGraph) => {
|
||||
const commit = commits[key];
|
||||
|
||||
if (isParallelCommits && commit.parents.length) {
|
||||
const closestParent = findClosestParent(commit.parents, commits);
|
||||
const closestParent = findClosestParent(commit.parents);
|
||||
pos = dir === 'TB' ? commitPos[closestParent].y + 40 : commitPos[closestParent].x + 40;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user