Properties tab should not show for non-domain objects

This commit is contained in:
Jamie V 2025-01-22 12:48:13 -08:00
parent 567aa69d27
commit f7d78c1223

View File

@ -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;