fix: image generation

This commit is contained in:
Timothy J. Baek 2024-09-24 13:54:34 +02:00
parent 31b311c3c9
commit 85e9e231ed

View File

@ -304,12 +304,12 @@
console.log(res);
if (res) {
message.files = res.map((image) => ({
const files = res.map((image) => ({
type: 'image',
url: `${image.url}`
}));
dispatch('save', message);
dispatch('save', { ...message, files: files });
}
generatingImage = false;