Merge pull request #3383 from hughli-git/fix_git_stack_exceeded

Fix gitGraph findLane function error
This commit is contained in:
Knut Sveidqvist 2022-09-01 16:00:43 +02:00 committed by GitHub
commit 3502fb46f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
};
/**