style fix

This commit is contained in:
Abi Raja 2023-11-26 15:31:59 -05:00 committed by dialmedu
parent b59acc0dd0
commit 5cd113fd54

View File

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