Skip to content

Commit 86f7120

Browse files
authored
fix: Trainrun deselection leaves single trainrun section marked/selected (#682)
* fix: Trainrun deselection leaves single trainrun section marked/selected * fix: Trainrun deselection leaves single trainrun section marked/selected - the issue was triggered by the pearlsview
1 parent 02f1f6c commit 86f7120

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/perlenkette/perlenkette.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ export class PerlenketteComponent implements AfterContentChecked, OnDestroy {
9090
});
9191

9292
this.trainrunService.trainruns.pipe(takeUntil(this.destroyed$)).subscribe((trainrunList) => {
93+
if (!this.trainrunService.getSelectedTrainrun()) {
94+
return;
95+
}
9396
if (!this.trainrunSectionService.getSelectedTrainrunSection()) {
9497
this.trainrunSectionService.setTrainrunSectionAsSelected(
9598
this.perlenketteTrainrun.pathItems

0 commit comments

Comments
 (0)