From 7ffbc9ad2faae29b906e7a73b638b52839968898 Mon Sep 17 00:00:00 2001 From: Shivam Dave Date: Mon, 31 Aug 2015 13:37:22 -0700 Subject: [PATCH] [Remove Action] Check Added check for traverseObject context because prior to this, was not checked. --- platform/commonUI/edit/src/actions/RemoveAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/commonUI/edit/src/actions/RemoveAction.js b/platform/commonUI/edit/src/actions/RemoveAction.js index 2d8e224491..477a7e14a0 100644 --- a/platform/commonUI/edit/src/actions/RemoveAction.js +++ b/platform/commonUI/edit/src/actions/RemoveAction.js @@ -93,7 +93,7 @@ define( var traverseObject = (navigationService).getNavigation(); // Stop when object is not defined (above ROOT) - while (traverseObject) { + while (traverseObject && traverseObject.getCapability('context')) { // If object currently traversed to is object being removed // navigate to parent of current object and then exit loop