Commit 1d2a9d0e authored by Olivier PODEVIN's avatar Olivier PODEVIN
Browse files

Fix bug that change to empty satellite when deleting one in all cases

Before the bug fix, even if we were not on the satellite form and we
were deleting the last edited satellite, we were re-routed to the empty
satellite editor form.

It was due to a forgotten unsubscribe in the satellite form.
parent 572ab968
......@@ -146,9 +146,7 @@
</mat-card-actions>
</mat-card>
<!--
<button id="run-button" (click)="onRunAnalysis()" mat-stroked-button color="accent">Run Mission Analysis</button>
-->
</mat-nav-list>
</mat-sidenav>
<div class="page-wrap">
......
......@@ -103,6 +103,7 @@ export class SatelliteFormComponent extends BaseDisplayMessageComponent implemen
ngOnDestroy() {
this.routeSubscription.unsubscribe();
this.satelliteListSubscription.unsubscribe();
}
public onSavingSat() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment