Skip to content

Commit 84ad762

Browse files
Merge branch 'theme-fixes_contribute-7.6' into dspace-8_x
2 parents d1fdd61 + 62f1566 commit 84ad762

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/app/shared/theme-support/themed.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ export abstract class ThemedComponent<T extends object> implements AfterViewInit
9999
}
100100

101101
initComponentInstance(changes?: SimpleChanges) {
102+
if (hasValue(this.themeSub)) {
103+
this.themeSub.unsubscribe();
104+
}
102105
this.themeSub = this.themeService?.getThemeName$().subscribe(() => {
103106
this.renderComponentInstance(changes);
104107
});

0 commit comments

Comments
 (0)