Remove temporary checks
[MAILPOET-2453]
This commit is contained in:
committed by
Rostislav Wolný
parent
8a218dd06c
commit
06292316bc
@@ -15,7 +15,6 @@ import * as customText from './custom_text/custom_text.jsx';
|
|||||||
import * as customTextArea from './custom_textarea/custom_textarea.jsx';
|
import * as customTextArea from './custom_textarea/custom_textarea.jsx';
|
||||||
|
|
||||||
const registerCustomFieldBlock = (customField) => {
|
const registerCustomFieldBlock = (customField) => {
|
||||||
console.log('custom Field', customField);// TODO temporary, remove when all custom fields are implemented
|
|
||||||
const namesMap = {
|
const namesMap = {
|
||||||
text: {
|
text: {
|
||||||
name: customText.name,
|
name: customText.name,
|
||||||
@@ -27,7 +26,6 @@ const registerCustomFieldBlock = (customField) => {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!namesMap[customField.type]) return;// TODO temporary, remove when all custom fields are implemented
|
|
||||||
registerBlockType(
|
registerBlockType(
|
||||||
formatCustomFieldBlockName(namesMap[customField.type].name, customField),
|
formatCustomFieldBlockName(namesMap[customField.type].name, customField),
|
||||||
namesMap[customField.type].settings
|
namesMap[customField.type].settings
|
||||||
|
@@ -9,8 +9,6 @@ const mapCustomField = (item, customFields, mappedCommonProperties) => {
|
|||||||
textarea: 'mailpoet-form/custom-textarea',
|
textarea: 'mailpoet-form/custom-textarea',
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!namesMap[customField.type]) return null;// TODO temporary, remove when all custom fields are implemented
|
|
||||||
|
|
||||||
const mapped = {
|
const mapped = {
|
||||||
...mappedCommonProperties,
|
...mappedCommonProperties,
|
||||||
name: formatCustomFieldBlockName(namesMap[customField.type], customField),
|
name: formatCustomFieldBlockName(namesMap[customField.type], customField),
|
||||||
|
Reference in New Issue
Block a user