mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-21 09:45:18 -05:00
Consolidate frontend types (#1245)
This commit is contained in:
committed by
GitHub
parent
6a88a59981
commit
479900e912
@@ -702,8 +702,8 @@ export default defineComponent({
|
||||
return;
|
||||
}
|
||||
const newVersion = await api.recipes.updateImage(recipe.value.slug, fileObject);
|
||||
if (newVersion?.data?.version) {
|
||||
recipe.value.image = newVersion.data.version;
|
||||
if (newVersion?.data?.image) {
|
||||
recipe.value.image = newVersion.data.image;
|
||||
}
|
||||
state.imageKey++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user