Skip to content

Commit

Permalink
fix: vue3 slots.default do not always exist (#3192)
Browse files Browse the repository at this point in the history
  • Loading branch information
qq1037305420 authored Jun 15, 2022
1 parent 4bca110 commit 91d6488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue/src/shared/fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (isVue2) {
FragmentComponent = defineComponent({
name: 'Fragment',
render() {
return this.$slots.default()
return this.$slots.default?.()
},
})
}
Expand Down

0 comments on commit 91d6488

Please sign in to comment.