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…
Reference in New Issue