style fix

This commit is contained in:
Abi Raja 2023-11-26 15:31:59 -05:00
parent 0449fec242
commit e8f4bf1dea

View File

@ -106,7 +106,7 @@ function ImageUpload({ setReferenceImages }: Props) {
// Convert images to data URLs and set the prompt images state // Convert images to data URLs and set the prompt images state
Promise.all(files.map((file) => fileToDataURL(file))) Promise.all(files.map((file) => fileToDataURL(file)))
.then((dataUrls) => { .then((dataUrls) => {
if(dataUrls.length > 0) { if (dataUrls.length > 0) {
setReferenceImages(dataUrls.map((dataUrl) => dataUrl as string)); setReferenceImages(dataUrls.map((dataUrl) => dataUrl as string));
} }
}) })