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

View File

@@ -343,7 +343,7 @@ const findLane = (y1, y2, _depth) => {
return candidate; return candidate;
} }
const diff = Math.abs(y1 - y2); const diff = Math.abs(y1 - y2);
return findLane(y1, y2 - diff / 5, depth); return findLane(y1, y2 - diff / 5, depth + 1);
}; };
/** /**