mirror of
https://github.com/nasa/openmct.git
synced 2025-04-15 15:06:47 +00:00
[Action] RemoveAction
Checks if the object exists, instead of checking if the ROOT is specifically reached, when traversing up to ancestors.
This commit is contained in:
parent
c4c4c42415
commit
dadbf3f6dc
@ -92,7 +92,7 @@ define(
|
||||
var traverseObject = (navigationService).getNavigation();
|
||||
|
||||
// Stop at ROOT of folder path
|
||||
while (traverseObject.getId() !== ROOT_ID) {
|
||||
while (traverseObject) {
|
||||
// If traverse object is object being removed
|
||||
// navigate to parent of removed object
|
||||
if (traverseObject.getId() === object.getId()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user