parentPath can never be null. It will be handled by the condition above
This commit is contained in:
@@ -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;
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user