Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Commit b3b487f

Browse files
committed
Refactor arrow color fix for merge commit
1 parent e6db50f commit b3b487f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/gitgraph.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1288,9 +1288,10 @@
12881288
}
12891289

12901290
alpha = rotate(alphaY, alphaX);
1291-
if (this.type != null ){
1292-
color = this.parentCommit.branch.color;
1293-
}
1291+
}
1292+
1293+
if (this.type === "mergeCommit"){
1294+
color = this.parentCommit.branch.color;
12941295
}
12951296

12961297
var delta = Math.PI / 7; // Delta between left & right (radian)

0 commit comments

Comments
 (0)