mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 06:01:22 +08:00
use same param key as backgrounds addon (#7437)
use same param key as backgrounds addon
This commit is contained in:
commit
65b608c4db
@ -56,7 +56,7 @@ export default class BackgroundPanel extends Component {
|
||||
render() {
|
||||
const { active, api } = this.props;
|
||||
|
||||
if (!active) {
|
||||
if (!active || !this.state) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -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`;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user