mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
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
|
* and commitB's x-position
|
||||||
*/
|
*/
|
||||||
const hasOverlappingCommits = (commitA, commitB, allCommits) =>
|
const hasOverlappingCommits = (commitA, commitB, allCommits) =>
|
||||||
Object.entries(allCommits).some(
|
Object.values(allCommits).some(
|
||||||
(commitX) =>
|
(commitX) =>
|
||||||
commitX.branch === commitA.branch && commitX.seq > commitA.seq && commitX.seq < commitB.seq
|
commitX.branch === commitA.branch && commitX.seq > commitA.seq && commitX.seq < commitB.seq
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user