error fix
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { computed } from 'vue'
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const config = useRuntimeConfig();
|
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' })
|
throw createError({ statusCode: 404, statusMessage: 'Recipe not found' })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user