Skip to content

Commit

Permalink
build(deps): update dependency @nuxt/content to v2.12.1 (#198)
Browse files Browse the repository at this point in the history
* build(deps): update dependency @nuxt/content to v2.12.1

* fix(article): use null check instead of accessing private attributes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arunanshu Biswas <[email protected]>
  • Loading branch information
renovate[bot] and arunanshub authored Mar 13, 2024
1 parent 5475e89 commit 5cabd11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"vue-tsc": "^2.0.0"
},
"dependencies": {
"@nuxt/content": "2.12.0",
"@nuxt/content": "2.12.1",
"@nuxt/image": "^1.3.0",
"@nuxtjs/critters": "^0.6.0",
"@nuxtjs/fontaine": "^0.4.1",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/pages/info/[article].vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ const { data, error } = await useAsyncData(path, () => {
return queryContent(path).only(['title', 'body']).findOne()
})
if (error.value || data.value?._empty) {
if (error.value || !data.value) {
throw createError({
statusCode: 404,
statusMessage: 'The page you are looking for does not exist.',
fatal: true,
})
}
</script>

0 comments on commit 5cabd11

Please sign in to comment.