feat: Updated frontend/src/components/ImageUpload.

This commit is contained in:
sweep-ai[bot] 2023-11-22 03:50:49 +00:00 committed by GitHub
parent 808b49d789
commit d0ded29b7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)))