Skip to content

Commit 57bdb16

Browse files
Fixed a bug in named slot rendering (#636)
1 parent 43e5a81 commit 57bdb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/content/templates/nuxt-content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function isTemplate (node) {
9494
function getSlotName (node) {
9595
let name = ''
9696
for (const propName of Object.keys(node.props)) {
97-
if (!propName.startsWith('#') && !propName.startsWith('v-slot:')) { return }
97+
if (!propName.startsWith('#') && !propName.startsWith('v-slot:')) { continue }
9898
name = propName.split(/[:#]/, 2)[1]
9999
break
100100
}

0 commit comments

Comments
 (0)