@onehat/data 1.21.18 → 1.21.20
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/data",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.20",
|
|
4
4
|
"description": "JS data modeling package with adapters for many storage mediums.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
"uuid": "^9.0.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"fast-xml-parser": "^4.4.1"
|
|
56
|
+
"fast-xml-parser": "^4.4.1",
|
|
57
|
+
"store2": "^2.14.3"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"@babel/core": "^7.22.1",
|
package/src/Entity/Entity.js
CHANGED
|
@@ -188,7 +188,7 @@ class OneBuildRepository extends AjaxRepository {
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
|
|
191
|
-
if (this.isLoaded && !this.eventsPaused) {
|
|
191
|
+
if (this.isAutoLoad && this.isLoaded && !this.eventsPaused) {
|
|
192
192
|
if (this.isTree) {
|
|
193
193
|
return this.loadRootNodes(1);
|
|
194
194
|
} else {
|
|
@@ -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();
|