From 6a0550812e0498ece7a218a3299ff54389b99282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 19 Jun 2022 16:53:34 +0200 Subject: [PATCH] fix(ContentQuery): add condition if value is undefined --- src/runtime/components/ContentQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/ContentQuery.ts b/src/runtime/components/ContentQuery.ts index 1852aa827..3a26e84c2 100644 --- a/src/runtime/components/ContentQuery.ts +++ b/src/runtime/components/ContentQuery.ts @@ -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( `content-query-${hash(props)}`,