wow
This commit is contained in:
parent
0eeb6116fd
commit
fe50550bb9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue