use same param key as backgrounds addon (#7437)

use same param key as backgrounds addon
This commit is contained in:
Norbert de Langen 2019-07-16 15:33:43 +02:00 committed by GitHub
commit 65b608c4db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ export default class BackgroundPanel extends Component {
render() {
const { active, api } = this.props;
if (!active) {
if (!active || !this.state) {
return null;
}

View File

@ -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`;