mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-23 10:16:43 +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];
|
const commit = commits[key];
|
||||||
|
|
||||||
if (isParallelCommits && commit.parents.length) {
|
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;
|
pos = dir === 'TB' ? commitPos[closestParent].y + 40 : commitPos[closestParent].x + 40;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user