This commit is contained in:
암냥 2026-04-23 19:14:38 +09:00
commit fe50550bb9
No known key found for this signature in database

View file

@ -188,7 +188,7 @@ export default function AddPage() {
const items: PreviewItem[] = mediaItems const items: PreviewItem[] = mediaItems
.map((m) => ({ .map((m) => ({
url: (m as any).thumbnail_url || (m as any).url || "", url: (m as any).thumbnail_url || (m as any).url || "",
type: ((m as any).type === "video" || (m as any).type === "gif") ? "video" : "image" type: (((m as any).type === "video" || (m as any).type === "gif") ? "video" : "image") as "image" | "video"
})) }))
.filter((item) => item.url.length > 0); .filter((item) => item.url.length > 0);