|
@@ -247,7 +247,7 @@ editor.on('component:selected', (comp) => {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- if (selectedComponent.get('attributes').mtb_toolbar != '') {
|
|
|
+ if (selectedComponent.get('attributes').mtb_toolbar != '' && selectedComponent.get('attributes').mtb_toolbar != undefined) {
|
|
|
const mtbToolbar = selectedComponent.get('attributes').mtb_toolbar;
|
|
|
const safeActions = mtbToolbar.split(',');
|
|
|
|
|
@@ -274,7 +274,6 @@ editor.on('component:selected', (comp) => {
|
|
|
selectedComponent.set({
|
|
|
toolbar: inputToolbar
|
|
|
});
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|