Skip to content

Commit

Permalink
NUI-6244 Do not fallback to default theme if showTheme switch if unde…
Browse files Browse the repository at this point in the history
…fined
  • Loading branch information
pavlo-poimanov authored Oct 14, 2024
1 parent 8dbf1f1 commit 54c7afc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bits/src/services/theme-switch.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export class ThemeSwitchService {
const showThemeSwitcher = (route.snapshot.data || {})
.showThemeSwitcher;

if (typeof showThemeSwitcher === "undefined") {
return;
}

this.showThemeSwitcherSubject.next(showThemeSwitcher);

if (showThemeSwitcher) {
Expand Down

0 comments on commit 54c7afc

Please sign in to comment.