fix errors when navigated away from a layout that uses toolbar

This commit is contained in:
Deep Tailor
2020-03-27 10:15:09 -07:00
parent eedc0f13bc
commit 6b00af6ece
3 changed files with 12 additions and 2 deletions

View File

@ -85,7 +85,13 @@ export default {
return;
}
let format = selection[0][0].context.layoutItem.format;
let layoutItem = selection[0][0].context.layoutItem;
if (!layoutItem) {
return;
}
let format = layoutItem.format;
this.nonMixedFormat = selection.every(selectionPath => {
return selectionPath[0].context.layoutItem.format === format;
});