Skip to content

Commit

Permalink
Addon-controls: Fix paramKey handling for tab auto-configurability
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed May 28, 2020
1 parent 62882fb commit fc0f6be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/controls/src/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import addons, { types } from '@storybook/addons';
import { AddonPanel } from '@storybook/components';
import { API } from '@storybook/api';
import { ControlsPanel } from './components/ControlsPanel';
import { ADDON_ID } from './constants';
import { ADDON_ID, PARAM_KEY } from './constants';

addons.register(ADDON_ID, (api: API) => {
addons.addPanel(ADDON_ID, {
title: 'Controls',
type: types.PANEL,
paramKey: PARAM_KEY,
render: ({ key, active }) => {
if (!active || !api.getCurrentStoryData()) {
return null;
Expand Down

0 comments on commit fc0f6be

Please sign in to comment.