Skip to content

Commit 6e74c22

Browse files
author
Robert Meyer
committed
fix: always use given link.color
1 parent 9ae5e8d commit 6e74c22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/gantt/src/components/links/links.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ export class GanttLinksComponent implements OnInit, OnChanges, OnDestroy {
186186
} else if (link.type === GanttLinkType.ss && source.start.getTime() > target.start.getTime()) {
187187
defaultColor = LinkColors.blocked;
188188
activeColor = LinkColors.blocked;
189-
} else if (link.color) {
189+
}
190+
191+
if (link.color) {
190192
if (typeof link.color === 'string') {
191193
defaultColor = link.color;
192194
activeColor = link.color;

0 commit comments

Comments
 (0)