mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 14:48:13 +00:00
fix errors when navigated away from a layout that uses toolbar
This commit is contained in:
@ -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;
|
||||
});
|
||||
|
Reference in New Issue
Block a user