diff --git a/src/pages/dash/images.tsx b/src/pages/dash/images.tsx index 5c18343c..26bc06bc 100644 --- a/src/pages/dash/images.tsx +++ b/src/pages/dash/images.tsx @@ -55,8 +55,8 @@ export default function Images({ config }) { const getChunkedImages = async () => { const c = await (await fetch('/api/images/chunk')).json(); if (!c.error) { - setChunks([]); - return []; + setChunks(c); + return c; } return []; }; @@ -136,18 +136,18 @@ export default function Images({ config }) { ) : ( - - - + + + + - - )} + )} ) : null} setFiles(f)} + maxFileSize={1073741824} // 1gb in byte />