Merge pull request #12285 from misslivirose/fix-recursive-delete

Fix deleting entities with children depth > 1
This commit is contained in:
Seth Alves 2018-01-30 10:48:10 -08:00 committed by GitHub
commit ead16004fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1344,7 +1344,7 @@ function recursiveDelete(entities, childrenList, deletedIDs) {
var entityID = entities[i];
var children = Entities.getChildrenIDs(entityID);
var grandchildrenList = [];
recursiveDelete(children, grandchildrenList);
recursiveDelete(children, grandchildrenList, deletedIDs);
var initialProperties = Entities.getEntityProperties(entityID);
childrenList.push({
entityID: entityID,