Skip to content

Commit

Permalink
fix(VExpansionPanelContent): add default value for header destructure
Browse files Browse the repository at this point in the history
was causing ts error on compilation: Type 'undefined' must have a '[Symbol.iterator]()' method that
returns an iterator
  • Loading branch information
johnleider committed Dec 12, 2018
1 parent d235fa7 commit 5d9dcf9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -103,7 +103,7 @@ export default mixins<options &
}, this.showLazyContent(this.$slots.default))
},
genHeader () {
const children = [...this.$slots.header]
const children = [...(this.$slots.header || [])]

if (!this.hideActions) children.push(this.genIcon())

Expand Down

0 comments on commit 5d9dcf9

Please sign in to comment.