parentPath can never be null. It will be handled by the condition above

This commit is contained in:
Mads Rasmussen
2023-11-17 15:50:16 +01:00
parent ea1d7e1348
commit f930476671

View File

@@ -38,7 +38,7 @@ export class UmbFileSystemTreeStore
return this._data.asObservablePart((items) =>
items.filter((item) => {
const pathCut = item.path?.substring(0, item.path?.lastIndexOf('/'));
return parentPath === pathCut || parentPath === null;
return parentPath === pathCut;
}),
);
}