fix the unfixeble

This commit is contained in:
m
2026-09-11 10:49:12 +02:00
parent 76ed3aa66b
commit 2d9be3f489
13 changed files with 869 additions and 51 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ export default function FolderScreen() {
return;
}
setFolder(current);
setSubfolders(await getFolderFolders(id));
setFiles(await getFiles(id));
setSubfolders((await getFolderFolders(id)).filter(f => f.exists));
setFiles((await getFiles(id)).filter(f => f.exists));
}, [id, router]);
useFocusEffect(
+1 -1
View File
@@ -82,7 +82,7 @@ export default function Index() {
const [sections, setSections] = useState<FileSection[]>([]);
const load = useCallback(async () => {
const files = await getFiles();
const files = (await getFiles()).filter(f => f.exists);
setSections(groupFilesByDay(files));
}, []);