diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index 6f4911083b..c73c18ff3c 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -885,7 +885,7 @@ class Editor extends React.Component { }; handleOnComponentOptionsChanged = (component, options) => { - onComponentOptionsChanged(this, component, options); + return onComponentOptionsChanged(this, component, options); }; handleComponentClick = (id, component) => { diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index 22f26fc906..ca7c003c94 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -42,8 +42,8 @@ export function onComponentOptionsChanged(_ref, component, options) { componentData[option[0]] = option[1]; } - return setStateAsync(_ref, { - currentState: { ..._ref.state.currentState, components: { ...components, [componentName]: componentData } }, + return setCurrentStateAsync(_ref, { + components: { ...components, [componentName]: componentData }, }); }