feat: Updated frontend/src/components/ImageUpload.
This commit is contained in:
parent
808b49d789
commit
d0ded29b7a
@ -49,7 +49,6 @@ function fileToDataURL(file: File) {
|
|||||||
type FileWithPreview = {
|
type FileWithPreview = {
|
||||||
preview: string;
|
preview: string;
|
||||||
} & File;
|
} & File;
|
||||||
);
|
|
||||||
|
|
||||||
// Convert images to data URLs and set the prompt images state
|
// Convert images to data URLs and set the prompt images state
|
||||||
Promise.all(acceptedFiles.map((file) => fileToDataURL(file)))
|
Promise.all(acceptedFiles.map((file) => fileToDataURL(file)))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user