mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 02:09:50 +02:00
GitGraph: added destination branch check into overlapping fn.
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user