aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/settings/components/index.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings/components/index.tsx b/src/settings/components/index.tsx
index b4a0866..eeac2cf 100644
--- a/src/settings/components/index.tsx
+++ b/src/settings/components/index.tsx
@@ -175,6 +175,7 @@ class SettingsComponent extends React.Component<Props> {
if (from === 'form' && value === 'json') {
this.props.dispatch(settingActions.switchToJson(
this.props.form as FormSettings));
+ this.save();
} else if (from === 'json' && value === 'form') {
let b = window.confirm(DO_YOU_WANT_TO_CONTINUE);
if (!b) {
@@ -183,6 +184,7 @@ class SettingsComponent extends React.Component<Props> {
}
this.props.dispatch(
settingActions.switchToForm(this.props.json as JSONSettings));
+ this.save();
}
}