Skip to content

Commit

Permalink
fix: replace defineCustomElements from preview.ts 🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
artursopelnik committed Oct 17, 2024
1 parent 847fba1 commit e18aa14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storybook/src/stories/my-component.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The component displays only the first and last name by default, but can optional
const parts = splitted.filter(part => part.length > 0)
const subdir = parts.length > 0 ? parts[0] : null

window.open(`${isSubdirectory ? subdir : '/'}?path=/story/components-mycomponent--default`)
window.open(`${isSubdirectory && '/' + subdir }/?path=/story/components-mycomponent--default`)
}
}
]} />
Expand Down

0 comments on commit e18aa14

Please sign in to comment.