mirror of
https://github.com/nasa/openmct.git
synced 2025-04-29 15:30:07 +00:00
[Browse] Ensure selection at startup
...even when domain object identified by default path is not found.
This commit is contained in:
parent
5f7f349f29
commit
b8206b8824
@ -123,6 +123,12 @@ define(
|
|||||||
} else {
|
} else {
|
||||||
doNavigate(nextObject, index + 1);
|
doNavigate(nextObject, index + 1);
|
||||||
}
|
}
|
||||||
|
} else if (index === 1 && c.length > 0) {
|
||||||
|
// Roots are in a top-level container that we don't
|
||||||
|
// want to be selected, so if we couldn't find an
|
||||||
|
// object at the path we wanted, at least select
|
||||||
|
// one of its children.
|
||||||
|
navigateTo(c[c.length - 1]);
|
||||||
} else {
|
} else {
|
||||||
// Couldn't find the next element of the path
|
// Couldn't find the next element of the path
|
||||||
// so navigate to the last path object we did find
|
// so navigate to the last path object we did find
|
||||||
|
Loading…
x
Reference in New Issue
Block a user