갤러리 페이지에서 파일이 표시되지 않던 버그 수정

This commit is contained in:
static
2025-12-26 23:29:29 +09:00
parent 27a46bcc2e
commit 3e98e3d591
2 changed files with 7 additions and 2 deletions

View File

@@ -95,8 +95,13 @@
const unsubscribes = filesWithDate.map((file) =>
file.info.subscribe((value) => {
const newDate = value?.createdAt ?? value?.lastModifiedAt;
if (file.date?.getTime() === newDate?.getTime()) return;
const newContentType = value?.contentType;
if (file.date?.getTime() === newDate?.getTime() && file.contentType === newContentType) {
return;
}
file.date = newDate;
file.contentType = newContentType;
buildRows();
}),
);