Skip to content

Commit fda7342

Browse files
authored
fix: Reset state (subject) when closing the Editor/..View (#647)
1 parent 30fb09a commit fda7342

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/view/filter-main-side-view/filter-main-side-view.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ export class FilterMainSideViewComponent implements OnInit, OnDestroy {
157157
ngOnDestroy(): void {
158158
this.destroyed.next();
159159
this.destroyed.complete();
160+
// this must be reset to MainViewMode.Netzgrafik - otherwise side-effect when reloading data
161+
this.uiInteractionService.showOriginDestinationSubjet.next(MainViewMode.Netzgrafik);
160162
}
161163

162164
setMode(mode: string) {

0 commit comments

Comments
 (0)