Remove unnecessary argument on findClosestParent call

This commit is contained in:
Matheus B
2024-01-16 19:37:52 -03:00
parent 6f09bc7dc7
commit bf1edd99f9

View File

@@ -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;
}