Always add custom fields category to block inserter
[MAILPOET-2463]
This commit is contained in:
committed by
Pavel Dohnal
parent
e251d81a9d
commit
1d1cb3ec2b
@ -29,9 +29,8 @@ export const initBlocks = () => {
|
||||
const categories = [
|
||||
{ slug: 'obligatory', title: '' }, // Blocks from this category are not in block insert popup
|
||||
];
|
||||
if (Array.isArray(customFields) && customFields.length) {
|
||||
categories.push({ slug: 'custom-fields', title: MailPoet.I18n.t('customFieldsBlocksCategory') });
|
||||
}
|
||||
|
||||
categories.push({ slug: 'custom-fields', title: MailPoet.I18n.t('customFieldsBlocksCategory') });
|
||||
categories.push({ slug: 'fields', title: MailPoet.I18n.t('fieldsBlocksCategory') });
|
||||
setCategories(categories);
|
||||
|
||||
|
Reference in New Issue
Block a user