Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from mikinovation/fix/vuetify-config-undefined
Browse files Browse the repository at this point in the history
Fix/vuetify config undefined
  • Loading branch information
mikinovation authored May 1, 2022
2 parents e09b44a + 043bf6f commit d1caffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "storybook-addon-vuetify3",
"version": "2.0.0",
"version": "2.0.1",
"description": "storybook addon for decoration style with vuetify3",
"main": "dist/preset.js",
"files": [
Expand Down
3 changes: 2 additions & 1 deletion src/decorators/withVuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export const withVuetify = makeDecorator({
wrapper: (Story, context) => {
VuetifyPlugin.install()

const options = context.parameters.globalTypes.vuetify || {}
const globalTypes = context.parameters.globalTypes ? context.parameters.globalTypes : {}
const options = globalTypes && globalTypes.vuetify ? globalTypes.vuetify : {}

app.use(
createVuetify(
Expand Down

0 comments on commit d1caffb

Please sign in to comment.