@onehat/data 1.21.18 → 1.21.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/Entity/Entity.js
CHANGED
|
@@ -805,13 +805,10 @@ class OneBuildRepository extends AjaxRepository {
|
|
|
805
805
|
// If children already exist, remove them from the repository
|
|
806
806
|
// This way, we can reload just a portion of the tree
|
|
807
807
|
if (!_.isEmpty(treeNode.children)) {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
const oThis = this;
|
|
812
|
-
_.each(children, (child) => {
|
|
813
|
-
oThis.removeEntity(child);
|
|
808
|
+
_.each(treeNode.children, (child) => {
|
|
809
|
+
treeNode.repository.removeTreeNode(child);
|
|
814
810
|
});
|
|
811
|
+
treeNode.children = [];
|
|
815
812
|
}
|
|
816
813
|
|
|
817
814
|
this.markLoading();
|