Skip to content

Commit

Permalink
fix: story id from child props
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 20, 2020
1 parent 6551188 commit b02a0d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/blocks/src/Playground/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export const Playground: FC<PlaygroundProps> = ({
if (childArr.length === 1) {
//@ts-ignore
const childProps = childArr[0].props;
const storyId = childProps.name ? storyIdFromName(childProps.name) : id;
const storyId = childProps.name
? storyIdFromName(childProps.name)
: id || childProps.id;
if (storyId) {
userActions.push({
title: 'source',
Expand Down

0 comments on commit b02a0d8

Please sign in to comment.