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

Commit e4b8433

Browse files
authored
Merge pull request #216 from yappynoppy/arrowColorBugFix
fix arrow color problem
2 parents 79d638c + f77d170 commit e4b8433

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gitgraph.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,9 @@
12881288
}
12891289

12901290
alpha = rotate(alphaY, alphaX);
1291-
color = this.parentCommit.branch.color;
1291+
if (this.type != null ){
1292+
color = this.parentCommit.branch.color;
1293+
}
12921294
}
12931295

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

0 commit comments

Comments
 (0)