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