mirror of
https://github.com/nasa/openmct.git
synced 2025-01-01 19:06:40 +00:00
[Remove Action] Check
Added check for traverseObject context because prior to this, was not checked.
This commit is contained in:
parent
54bf39344a
commit
7ffbc9ad2f
@ -93,7 +93,7 @@ define(
|
|||||||
var traverseObject = (navigationService).getNavigation();
|
var traverseObject = (navigationService).getNavigation();
|
||||||
|
|
||||||
// Stop when object is not defined (above ROOT)
|
// Stop when object is not defined (above ROOT)
|
||||||
while (traverseObject) {
|
while (traverseObject && traverseObject.getCapability('context')) {
|
||||||
|
|
||||||
// If object currently traversed to is object being removed
|
// If object currently traversed to is object being removed
|
||||||
// navigate to parent of current object and then exit loop
|
// navigate to parent of current object and then exit loop
|
||||||
|
Loading…
Reference in New Issue
Block a user