1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-28 17:20:13 +02:00

refactor how codemirror options apply from settings.

Now Usercodemirror component handles each own option
updation.
This commit is contained in:
Kushagra Gour
2018-10-07 17:49:58 +05:30
parent abdb287b1c
commit ca77303d68
5 changed files with 62 additions and 72 deletions

View File

@@ -195,7 +195,7 @@ export default class App extends Component {
this.createNewItem();
}
Object.assign(this.state.prefs, result);
this.setState({ prefs: this.state.prefs });
this.setState({ prefs: { ...this.state.prefs } });
this.updateSetting();
});