style fix
This commit is contained in:
parent
0449fec242
commit
e8f4bf1dea
@ -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));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user