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:
@@ -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();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user