mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-01 06:36:40 +02:00
Fix linter issues
This commit is contained in:
@@ -115,11 +115,9 @@ const drawCommits = (svg, commits, modifyGraph) => {
|
|||||||
sortedKeys.forEach((key) => {
|
sortedKeys.forEach((key) => {
|
||||||
const commit = commits[key];
|
const commit = commits[key];
|
||||||
|
|
||||||
if (isParallelCommits) {
|
if (isParallelCommits && commit.parents.length) {
|
||||||
if (commit.parents.length) {
|
const closestParent = findClosestParent(commit.parents, commits);
|
||||||
const closestParent = findClosestParent(commit.parents, commits);
|
pos = dir === 'TB' ? commitPos[closestParent].y + 40 : commitPos[closestParent].x + 40;
|
||||||
pos = dir === 'TB' ? commitPos[closestParent].y + 40 : commitPos[closestParent].x + 40;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const y = dir === 'TB' ? pos + 10 : branchPos[commit.branch].pos;
|
const y = dir === 'TB' ? pos + 10 : branchPos[commit.branch].pos;
|
||||||
|
Reference in New Issue
Block a user