diff --git a/assets/js/src/form_editor/blocks/add_custom_field/edit.jsx b/assets/js/src/form_editor/blocks/add_custom_field/edit.jsx index dd43b99644..d3c218e465 100644 --- a/assets/js/src/form_editor/blocks/add_custom_field/edit.jsx +++ b/assets/js/src/form_editor/blocks/add_custom_field/edit.jsx @@ -21,7 +21,7 @@ const AddCustomField = ({ clientId }) => { ); const isCreating = useSelect( - (sel) => sel('mailpoet-form-editor').getIsCustomFieldCrating(), + (sel) => sel('mailpoet-form-editor').getIsCustomFieldCreating(), [] ); diff --git a/assets/js/src/form_editor/store/selectors.jsx b/assets/js/src/form_editor/store/selectors.jsx index 661aed5fc4..29a54249de 100644 --- a/assets/js/src/form_editor/store/selectors.jsx +++ b/assets/js/src/form_editor/store/selectors.jsx @@ -59,7 +59,7 @@ export default { getDateSettingsData(state) { return state.dateSettingData; }, - getIsCustomFieldCrating(state) { + getIsCustomFieldCreating(state) { return state.isCustomFieldCreating; }, };