Fix image uploader
This commit is contained in:
@@ -124,6 +124,10 @@ const uploadImage = async () => {
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: formData
|
body: formData
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (response) {
|
||||||
|
response.imageUrl = null;
|
||||||
|
}
|
||||||
recipe.value = response;
|
recipe.value = response;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error:", error);
|
console.error("Error:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user