GitGraph: corrected object method in hasOverlappingCommits
This commit is contained in:
parent
33050e1812
commit
4787bb07df
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue