Skip to content

Commit

Permalink
Merge branch 'theme-fixes_contribute-7.4' into theme-fixes_contribute…
Browse files Browse the repository at this point in the history
…-7.6
  • Loading branch information
alexandrevryghem committed Dec 30, 2024
2 parents a0d98be + 5535c6a commit b6e4c5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/shared/theme-support/themed.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export abstract class ThemedComponent<T> implements OnInit, OnDestroy, OnChanges
}

initComponentInstance(changes?: SimpleChanges) {
if (hasValue(this.themeSub)) {
this.themeSub.unsubscribe();
}
this.themeSub = this.themeService?.getThemeName$().subscribe(() => {
this.renderComponentInstance(changes);
});
Expand Down

0 comments on commit b6e4c5f

Please sign in to comment.