@onehat/data 1.21.2 → 1.21.5
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
|
@@ -1761,9 +1761,9 @@ class Entity extends EventEmitter {
|
|
|
1761
1761
|
parentIds.push(parent.id);
|
|
1762
1762
|
parent = parent.parent;
|
|
1763
1763
|
}
|
|
1764
|
-
if (parent.id !== this.id) {
|
|
1764
|
+
// if (parent.id !== this.id) {
|
|
1765
1765
|
parentIds.push(parent.id); // add root id
|
|
1766
|
-
}
|
|
1766
|
+
// }
|
|
1767
1767
|
|
|
1768
1768
|
return parentIds.reverse().join('/');
|
|
1769
1769
|
}
|
package/src/Repository/Ajax.js
CHANGED
|
@@ -22,7 +22,7 @@ class AjaxRepository extends Repository {
|
|
|
22
22
|
isRemote: true,
|
|
23
23
|
isRemoteFilter: true,
|
|
24
24
|
isRemoteSort: true,
|
|
25
|
-
isPaginated:
|
|
25
|
+
isPaginated: !config.schema.model.isTree, // If it's a tree, don't paginate
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @member {object} api - List of relative URIs to API endpoints.
|