We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent febb488 commit a846226Copy full SHA for a846226
src/app/services/data/trainrun.service.ts
@@ -972,9 +972,7 @@ export class TrainrunService {
972
if (!this.getSelectedTrainrun() || this.getSelectedTrainrun().isRoundTrip()) {
973
return "arrows-left-right-medium";
974
}
975
- const firstNode = this.getFirstTrainrunSection(this.getSelectedTrainrun()).getSourceNode();
976
- const lastNode = this.getLastTrainrunSection(this.getSelectedTrainrun()).getTargetNode();
977
- if (GeneralViewFunctions.getRightOrBottomNode(firstNode, lastNode) === lastNode) {
+ if (this.isTrainrunTargetRightOrBottom()) {
978
return "arrow-right-medium";
979
} else {
980
return "arrow-left-medium";
0 commit comments