Skip to content

Commit a846226

Browse files
committed
fix trainrun direction arrow
Signed-off-by: Louis Greiner <[email protected]>
1 parent febb488 commit a846226

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/services/data/trainrun.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,9 +972,7 @@ export class TrainrunService {
972972
if (!this.getSelectedTrainrun() || this.getSelectedTrainrun().isRoundTrip()) {
973973
return "arrows-left-right-medium";
974974
}
975-
const firstNode = this.getFirstTrainrunSection(this.getSelectedTrainrun()).getSourceNode();
976-
const lastNode = this.getLastTrainrunSection(this.getSelectedTrainrun()).getTargetNode();
977-
if (GeneralViewFunctions.getRightOrBottomNode(firstNode, lastNode) === lastNode) {
975+
if (this.isTrainrunTargetRightOrBottom()) {
978976
return "arrow-right-medium";
979977
} else {
980978
return "arrow-left-medium";

0 commit comments

Comments
 (0)