Skip to content

Commit

Permalink
fix(ContentQuery): add condition if value is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Jun 19, 2022
1 parent 7adaed1 commit 6a05508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/ContentQuery.ts
Expand Up @@ -96,7 +96,7 @@ export default defineComponent({
*
* Might be skipping `partial: true` marked in Markdown contents front-matter.
*/
const isPartial = computed(() => path.value.includes('/_'))
const isPartial = computed(() => path.value?.includes('/_'))

const { data, refresh } = await useAsyncData<ParsedContent | ParsedContent[]>(
`content-query-${hash(props)}`,
Expand Down

0 comments on commit 6a05508

Please sign in to comment.