From f7d78c12233a67b783f9d32a23079f8044761c13 Mon Sep 17 00:00:00 2001 From: Jamie V Date: Wed, 22 Jan 2025 12:48:13 -0800 Subject: [PATCH] Properties tab should not show for non-domain objects --- .../inspectorViews/properties/PropertiesViewProvider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/inspectorViews/properties/PropertiesViewProvider.js b/src/plugins/inspectorViews/properties/PropertiesViewProvider.js index 31c8770787..2ecb1cc01e 100644 --- a/src/plugins/inspectorViews/properties/PropertiesViewProvider.js +++ b/src/plugins/inspectorViews/properties/PropertiesViewProvider.js @@ -30,7 +30,9 @@ export default function PropertiesViewProvider(openmct) { name: 'Properties', glyph: 'icon-info', canView: function (selection) { - return selection.length > 0; + const domainObject = selection?.[0]?.[0]?.context?.item; + + return domainObject && selection.length > 0; }, view: function (selection) { let _destroy = null;