perf(RecipeCard): cambio para que cargue correctamente la imagen

parent cf9395ab
Showing with 2 additions and 1 deletions
......@@ -3,7 +3,7 @@
<div class="row g-0 h-100">
<div class="col-md-5 d-flex align-items-stretch">
<img
:src="recipe.picture != null ? recipe.picture : 'src/assets/default-recipe.jpg'"
:src="recipe.picture ? recipe.picture : defaultImage"
class="img-fluid w-100 h-100 rounded-start"
style="object-fit: cover;"
:alt="recipe.name"
......@@ -33,6 +33,7 @@
<script setup>
import { useRecipeStore } from '@/stores/recipeStore';
import defaultImage from '@/assets/default-recipe.jpg';
const props = defineProps({
recipe: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment