We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent 7c5fec2 commit a7d3f4dCopy full SHA for a7d3f4d
src/runtime/components/ContentQuery.ts
@@ -187,7 +187,7 @@ export default defineComponent({
187
if (!data && slots?.['not-found']) { return slots['not-found']({ props, ...this.$attrs }) }
188
189
// Empty slots for `one` if type is "markdown" refers to an empty `body.children` key.
190
- if (data._type && data._type === 'markdown' && !data?.body?.children.length) { return slots.empty({ props, ...this.$attrs }) }
+ if (data?._type === 'markdown' && !data?.body?.children.length) { return slots.empty({ props, ...this.$attrs }) }
191
} else if (!data || !data.length) {
192
// Handle `find()` and `findSurround()`
193
0 commit comments