We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b67a376 commit cbf2f6cCopy full SHA for cbf2f6c
src/components/Settings.tsx
@@ -57,7 +57,12 @@ export default class Settings extends React.Component<
57
};
58
59
loadDefaultSettings = () => {
60
- this.props.loadDefaultSettings(this.props.saveSettings);
+ const callback = () => {
61
+ /** Refresh the editor and save settings after loading default */
62
+ this.props.refreshEditor();
63
+ this.props.saveSettings();
64
+ };
65
+ this.props.loadDefaultSettings(callback);
66
67
68
render() {
0 commit comments