Skip to content

Commit 3502fb4

Browse files
authored
Merge pull request #3383 from hughli-git/fix_git_stack_exceeded
Fix gitGraph findLane function error
2 parents bacdd49 + 9d5e855 commit 3502fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagrams/git/gitGraphRenderer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ const findLane = (y1, y2, _depth) => {
343343
return candidate;
344344
}
345345
const diff = Math.abs(y1 - y2);
346-
return findLane(y1, y2 - diff / 5, depth);
346+
return findLane(y1, y2 - diff / 5, depth + 1);
347347
};
348348

349349
/**

0 commit comments

Comments
 (0)