fixed foods not linking to recipe in ingredient lists

This commit is contained in:
vabene1111 2021-10-14 09:00:45 +02:00
parent b214ed0825
commit 92f0f44a3d

View File

@ -19,7 +19,7 @@
</td>
<td>
<template v-if="ingredient.food !== null">
<a :href="resolveDjangoUrl('view_recipe', ingredient.food.recipe)" v-if="ingredient.food.recipe !== null"
<a :href="resolveDjangoUrl('view_recipe', ingredient.food.recipe.id)" v-if="ingredient.food.recipe !== null"
target="_blank" rel="noopener noreferrer">{{ ingredient.food.name }}</a>
<span v-if="ingredient.food.recipe === null">{{ ingredient.food.name }}</span>
</template>