filter null folders

This commit is contained in:
timothycarambat 2024-03-21 14:47:45 -07:00
parent 129c456f78
commit 2ce77b943e

View File

@ -70,7 +70,7 @@ async function viewLocalFiles() {
directory.items = [
directory.items.find((folder) => folder.name === "custom-documents"),
...directory.items.filter((folder) => folder.name !== "custom-documents"),
];
].filter((i) => !!i);
return directory;
}