Skip to content

Commit 5040566

Browse files
authored
Fix (bCard): array spread error when set to no-body
Fixes error `Invalid attempt to spread non-iterable instance` when `b-card` is set to `no-body` and has no content
1 parent 11c7524 commit 5040566

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)