Skip to content

Commit

Permalink
Fixed changing scheme during automation (#8136)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderby committed Feb 4, 2022
1 parent 7ebcdc9 commit 9085bb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/popup/theme/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export function getCurrentThemePreset(props: ViewProps) {
} else {
props.actions.setTheme(config);
}
if (config.mode && props.data.settings.automation && props.data.settings.automationBehaviour === 'Scheme') {
if (
config.mode != null &&
props.data.settings.automation &&
props.data.settings.automationBehaviour === 'Scheme'
) {
props.actions.changeSettings({
automation: '',
});
Expand Down

0 comments on commit 9085bb8

Please sign in to comment.