Skip to content

Commit 8a349d1

Browse files
committed
fix(runtime): handle undefined default slot for Fragment
1 parent e7b81c1 commit 8a349d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const createProxyComponent = (
4949
...args: any[]
5050
) => {
5151
if (type === Fragment) {
52-
type = (_, { slots }) => slots.default()
52+
type = (_, { slots }) => (slots.default ? slots.default() : [])
5353
props = null
5454
}
5555

0 commit comments

Comments
 (0)