Skip to content

Commit

Permalink
use same param key as backgrounds addon (#7437)
Browse files Browse the repository at this point in the history
use same param key as backgrounds addon
  • Loading branch information
ndelangen authored Jul 16, 2019
2 parents 8e95591 + b2f8226 commit 65b608c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/ondevice-backgrounds/src/BackgroundPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class BackgroundPanel extends Component {
render() {
const { active, api } = this.props;

if (!active) {
if (!active || !this.state) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion addons/ondevice-backgrounds/src/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const PARAM_KEY = 'background';
export const PARAM_KEY = 'backgrounds';
export const ADDON_ID = 'storybook-addon-background';
export const PANEL_ID = `${ADDON_ID}/background-panel`;

Expand Down

1 comment on commit 65b608c

@vercel
Copy link

@vercel vercel bot commented on 65b608c Jul 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.