Skip to content

Commit

Permalink
Fixing switching stories
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed May 3, 2017
1 parent ee8f6cb commit 57f32d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Stories.js
Expand Up @@ -50,8 +50,10 @@ export class Stories extends React.Component {
};
}

selectStory({ Component, states }) {
this.setState({ Component, props: states.values().next().value });
selectStory({ kind }) {
const { Component, states } = this.state.components.get(kind);

this.setState({ Component, props: states.values().next().value, kind });
}

selectProps(props) {
Expand Down

0 comments on commit 57f32d8

Please sign in to comment.