GitGraph: corrected object method in hasOverlappingCommits

This commit is contained in:
Guy Pursey 2023-10-11 22:52:56 +01:00
parent 33050e1812
commit 4787bb07df
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ const drawCommits = (svg, commits, modifyGraph) => {
* and commitB's x-position
*/
const hasOverlappingCommits = (commitA, commitB, allCommits) =>
Object.entries(allCommits).some(
Object.values(allCommits).some(
(commitX) =>
commitX.branch === commitA.branch && commitX.seq > commitA.seq && commitX.seq < commitB.seq
);