삭제된 파일의 캐시가 존재하는 경우 캐시 페이지의 로딩이 끝나지 않는 버그 수정

This commit is contained in:
static
2026-01-01 21:41:53 +09:00
parent 182ec18a2b
commit 841c57e8fc
16 changed files with 98 additions and 59 deletions

View File

@@ -4,12 +4,12 @@
import { FullscreenDiv } from "$lib/components/atoms";
import { TopBar } from "$lib/components/molecules";
import { Gallery } from "$lib/components/organisms";
import { getFileInfo, type FileInfo } from "$lib/modules/filesystem";
import { getFileInfo, type MaybeFileInfo } from "$lib/modules/filesystem";
import { masterKeyStore } from "$lib/stores";
let { data } = $props();
let files: (FileInfo | null)[] = $state([]);
let files: MaybeFileInfo[] = $state([]);
onMount(async () => {
files = await Promise.all(
@@ -25,7 +25,7 @@
<TopBar title="사진 및 동영상" />
<FullscreenDiv>
<Gallery
files={files.filter((file) => !!file)}
files={files.filter((file) => file?.exists)}
onFileClick={({ id }) => goto(`/file/${id}?from=gallery`)}
/>
</FullscreenDiv>