From dadbf3f6dc52565a76cbcf5f0de328156523b208 Mon Sep 17 00:00:00 2001 From: Shivam Dave Date: Thu, 27 Aug 2015 09:17:11 -0700 Subject: [PATCH] [Action] RemoveAction Checks if the object exists, instead of checking if the ROOT is specifically reached, when traversing up to ancestors. --- 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 fccce69b53..f49a998bb1 100644 --- a/platform/commonUI/edit/src/actions/RemoveAction.js +++ b/platform/commonUI/edit/src/actions/RemoveAction.js @@ -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()) {