@umbraco-cms/backoffice 14.0.0--preview004-81428bf9 → 14.0.0--preview004-cc87bfe3
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.
|
@@ -25,7 +25,10 @@ export class UmbFileSystemTreeStore extends UmbStoreBase {
|
|
|
25
25
|
if (parentPath === null) {
|
|
26
26
|
return this.rootItems;
|
|
27
27
|
}
|
|
28
|
-
return this._data.asObservablePart((items) => items.filter((item) =>
|
|
28
|
+
return this._data.asObservablePart((items) => items.filter((item) => {
|
|
29
|
+
const pathCut = item.path?.substring(0, item.path?.lastIndexOf('/'));
|
|
30
|
+
return parentPath === pathCut;
|
|
31
|
+
}));
|
|
29
32
|
}
|
|
30
33
|
/**
|
|
31
34
|
* Returns an observable to observe the items with the given ids
|