Skip to content

Commit 9eddd2b

Browse files
committed
fix: prevent error on empty slot
1 parent 32b95bb commit 9eddd2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/InfiniteLoading.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default /* #__PURE__ */defineComponent({
6161
// has slot and slot is pure text node
6262
|| (
6363
this.$slots[name]
64-
&& this.$slots[name]()[0].type === Text
64+
&& this.$slots[name]()[0]?.type === Text
6565
)
6666
) {
6767
// only apply default styles for pure text slot

0 commit comments

Comments
 (0)