pocka / storybook-addon-vue-info

Info addon for Vue components
https://storybook-addon-vue-info.netlify.com/?path=/story/examples-basic-usage--simple-example
MIT License
164 stars 28 forks source link

Throws an error if props was specified as an array and useDocgen option is false #107

Closed femioladeji closed 5 years ago

femioladeji commented 5 years ago

Describe the bug When props for a component is specified as an array of string when the useDocgen option is set to false, it tries to get the default value here in the getProps method by using the in operator on a string thereby throwing an error.

Expected behavior It should just return an empty string as the default value

Versions

pocka commented 5 years ago

Fixed in v1.2.2