mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-16 07:09:04 +08:00
Fix cancel bug
This commit is contained in:
@@ -216,7 +216,9 @@ class UserSettingsModal extends React.Component {
|
||||
} else {
|
||||
if (this.state.active_section === 'theme' && section !== 'theme') {
|
||||
const user = UserStore.getCurrentUser();
|
||||
Utils.applyTheme(user.theme_props);
|
||||
if (user.theme_props != null) {
|
||||
Utils.applyTheme(user.theme_props);
|
||||
}
|
||||
}
|
||||
this.setState({active_section: section});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user