Skip to content

Commit

Permalink
Merge pull request #3142 from storybooks/unset-background
Browse files Browse the repository at this point in the history
Unset background when switching to a non-background story
  • Loading branch information
Hypnosphi committed Mar 6, 2018
1 parent 0f1a596 commit ee2fe8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/background/src/BackgroundPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default class BackgroundPanel extends Component {
this.channel.on('background-unset', () => {
this.setState({ backgrounds: [] });
api.setQueryParams({ background: null });
this.updateIframe('none');
});
}

Expand Down

0 comments on commit ee2fe8c

Please sign in to comment.