Theme setting needs to update local state

pull/21833/head
J. Ryan Stinnett 2019-02-12 09:17:24 +00:00
parent 19e94b9e32
commit fb7913580e
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ export default class GeneralUserSettingsTab extends React.Component {
if (this.state.theme === newTheme) return;
SettingsStore.setValue("theme", null, SettingLevel.ACCOUNT, newTheme);
this.setState({theme: newTheme});
dis.dispatch({action: 'set_theme', value: newTheme});
};