diff --git a/src/plugins/inspectorViews/elements/ElementsViewProvider.js b/src/plugins/inspectorViews/elements/ElementsViewProvider.js index 1dd6c624e7..a0a3abc37c 100644 --- a/src/plugins/inspectorViews/elements/ElementsViewProvider.js +++ b/src/plugins/inspectorViews/elements/ElementsViewProvider.js @@ -65,7 +65,7 @@ export default function ElementsViewProvider(openmct) { return hasComposition; }, priority: function () { - return openmct.priority.DEFAULT; + return openmct.editor.isEditing() ? openmct.priority.DEFAULT : openmct.priority.LOW; }, destroy: function () { if (_destroy) { diff --git a/src/plugins/inspectorViews/properties/PropertiesViewProvider.js b/src/plugins/inspectorViews/properties/PropertiesViewProvider.js index 30a527a6e5..0dff7f13fa 100644 --- a/src/plugins/inspectorViews/properties/PropertiesViewProvider.js +++ b/src/plugins/inspectorViews/properties/PropertiesViewProvider.js @@ -56,10 +56,7 @@ export default function PropertiesViewProvider(openmct) { _destroy = destroy; }, priority: function () { - if (openmct.editor.isEditing()) { - return openmct.priority.LOW; - } - return openmct.priority.DEFAULT; + return openmct.editor.isEditing() ? openmct.priority.LOW : openmct.priority.DEFAULT; }, destroy: function () { if (_destroy) {