mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
GitGraph: added destination branch check into overlapping fn.
This commit is contained in:
parent
69ec4a0359
commit
8c43d2273f
@ -354,7 +354,9 @@ const drawCommits = (svg, commits, modifyGraph) => {
|
||||
const hasOverlappingCommits = (commitA, commitB, allCommits) =>
|
||||
Object.values(allCommits).some(
|
||||
(commitX) =>
|
||||
commitX.branch === commitA.branch && commitX.seq > commitA.seq && commitX.seq < commitB.seq
|
||||
(commitX.branch === commitA.branch || commitX.branch === commitB.branch) &&
|
||||
commitX.seq > commitA.seq &&
|
||||
commitX.seq < commitB.seq
|
||||
);
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user