Skip to content

Commit

Permalink
Merge pull request #1070 from snypy/fix-logout
Browse files Browse the repository at this point in the history
Fixes component destroy methods for logout
  • Loading branch information
nezhar authored Apr 2, 2022
2 parents eb69ed9 + 30cab5c commit b50fdd4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/app/components/languages/languages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class LanguagesComponent implements OnInit, OnDestroy {
activeFilter: Filter;

activeFilterSubscription: Subscription;
availableLanguagesSubscription: Subscription;

@SelectSnapshot(LanguageState)
public languages: Language[];
Expand All @@ -33,6 +32,5 @@ export class LanguagesComponent implements OnInit, OnDestroy {

ngOnDestroy(): void {
this.activeFilterSubscription.unsubscribe();
this.availableLanguagesSubscription.unsubscribe();
}
}
2 changes: 0 additions & 2 deletions src/app/components/snippets/snippets.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class SnippetsComponent implements OnInit, OnDestroy {

snippetsLoadedSubscription: Subscription;
activeSnippetSubscription: Subscription;
activeSnippetDeletedSubscription: Subscription;

@Select(state => state.snippet.activeSnippet) activeSnippet$: Observable<Snippet>;
@Select(state => state.snippet.list) snippetList$: Observable<Snippet[]>;
Expand Down Expand Up @@ -57,6 +56,5 @@ export class SnippetsComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {
this.snippetsLoadedSubscription.unsubscribe();
this.activeSnippetSubscription.unsubscribe();
this.activeSnippetDeletedSubscription.unsubscribe();
}
}

0 comments on commit b50fdd4

Please sign in to comment.