mirror of
https://github.com/nasa/openmct.git
synced 2025-03-23 04:25:27 +00:00
Properties tab should not show for non-domain objects
This commit is contained in:
parent
567aa69d27
commit
f7d78c1223
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user