Fix ESLint error
[MAILPOET-2281]
This commit is contained in:
committed by
Jack Kitterhing
parent
ff25324ed8
commit
24b5c69539
@ -6,9 +6,7 @@ import ReactDOM from 'react-dom';
|
|||||||
import displayTutorial from './tutorial.jsx';
|
import displayTutorial from './tutorial.jsx';
|
||||||
|
|
||||||
const renderBreadcrumb = (newsletterType) => {
|
const renderBreadcrumb = (newsletterType) => {
|
||||||
if (newsletterType === 'wc_transactional') {
|
if (newsletterType !== 'wc_transactional') {
|
||||||
return null;
|
|
||||||
}
|
|
||||||
const breadcrumbContainer = document.getElementById('mailpoet_editor_breadcrumb');
|
const breadcrumbContainer = document.getElementById('mailpoet_editor_breadcrumb');
|
||||||
const breadcrumb = Hooks.applyFilters(
|
const breadcrumb = Hooks.applyFilters(
|
||||||
'mailpoet_newsletters_editor_breadcrumb',
|
'mailpoet_newsletters_editor_breadcrumb',
|
||||||
@ -18,6 +16,7 @@ const renderBreadcrumb = (newsletterType) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
ReactDOM.render(breadcrumb, breadcrumbContainer);
|
ReactDOM.render(breadcrumb, breadcrumbContainer);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const initializeEditor = (config) => {
|
const initializeEditor = (config) => {
|
||||||
|
Reference in New Issue
Block a user