Skip to content

Commit bb37ea8

Browse files
authored
Merge pull request bootstrap-vue#2615 from bootstrap-vue/mosinve-patch-1
Fix (bCard): Fix error `Invalid attempt to spread non-iterable instance` when `b-card` is set to `no-body` and has no content
2 parents 11c7524 + 5040566 commit bb37ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/card/card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
}
6565

6666
if (props.noBody) {
67-
content = $slots.default
67+
content = $slots.default || []
6868
} else {
6969
// Wrap content in card-body
7070
content = [h(BCardBody, { props: pluckProps(bodyProps, props) }, $slots.default)]

0 commit comments

Comments
 (0)