mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 09:26:45 +00:00
backwards compatible fix and switching between multi to single root children fix (#3319)
This commit is contained in:
parent
4801dc4f32
commit
278f48f65c
@ -34,7 +34,7 @@ class RootObjectProvider {
|
||||
composition: []
|
||||
};
|
||||
RootObjectProvider.instance = this;
|
||||
} else {
|
||||
} else if (rootRegistry) {
|
||||
// if called twice, update instance rootRegistry
|
||||
RootObjectProvider.instance.rootRegistry = rootRegistry;
|
||||
}
|
||||
|
@ -451,6 +451,12 @@ export default {
|
||||
this.jumpPath = this.jumpPath[0];
|
||||
}
|
||||
|
||||
// switching back and forth between multiple root children can cause issues,
|
||||
// this checks for one of those issues
|
||||
if (this.jumpPath.key) {
|
||||
this.jumpPath = this.jumpPath.key;
|
||||
}
|
||||
|
||||
let nodes = this.jumpPath.split('/');
|
||||
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user