Skip to content

Commit

Permalink
Merge pull request #3383 from hughli-git/fix_git_stack_exceeded
Browse files Browse the repository at this point in the history
Fix gitGraph findLane function error
  • Loading branch information
knsv committed Sep 1, 2022
2 parents bacdd49 + 9d5e855 commit 3502fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagrams/git/gitGraphRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand Down

0 comments on commit 3502fb4

Please sign in to comment.