mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 09:08:43 +00:00
backwards compatible fix and switching between multi to single root children fix (#3319)
This commit is contained in:
@ -34,7 +34,7 @@ class RootObjectProvider {
|
|||||||
composition: []
|
composition: []
|
||||||
};
|
};
|
||||||
RootObjectProvider.instance = this;
|
RootObjectProvider.instance = this;
|
||||||
} else {
|
} else if (rootRegistry) {
|
||||||
// if called twice, update instance rootRegistry
|
// if called twice, update instance rootRegistry
|
||||||
RootObjectProvider.instance.rootRegistry = rootRegistry;
|
RootObjectProvider.instance.rootRegistry = rootRegistry;
|
||||||
}
|
}
|
||||||
|
@ -451,6 +451,12 @@ export default {
|
|||||||
this.jumpPath = this.jumpPath[0];
|
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('/');
|
let nodes = this.jumpPath.split('/');
|
||||||
|
|
||||||
for (let i = 0; i < nodes.length; i++) {
|
for (let i = 0; i < nodes.length; i++) {
|
||||||
|
Reference in New Issue
Block a user