mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Merge pull request #3383 from hughli-git/fix_git_stack_exceeded
Fix gitGraph findLane function error
This commit is contained in:
commit
3502fb46f8
@ -343,7 +343,7 @@ const findLane = (y1, y2, _depth) => {
|
||||
return candidate;
|
||||
}
|
||||
const diff = Math.abs(y1 - y2);
|
||||
return findLane(y1, y2 - diff / 5, depth);
|
||||
return findLane(y1, y2 - diff / 5, depth + 1);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user