error fix

This commit is contained in:
2026-03-19 19:51:20 +00:00
parent 726949e921
commit 0b82abbf48

View File

@@ -8,6 +8,7 @@
</template>
<script setup>
import { computed } from 'vue'
const route = useRoute();
const config = useRuntimeConfig();
@@ -32,7 +33,7 @@ const normalizedRecipe = computed(() => {
};
});
if (error.value || !recipe.value) {
if (error.value || !normalizedRecipe.value) {
throw createError({ statusCode: 404, statusMessage: 'Recipe not found' })
}