Skip to content

Commit

Permalink
Merge pull request #207 from storybookjs/kasper/bug-23782
Browse files Browse the repository at this point in the history
Don't use key anymore for rendering addon
  • Loading branch information
kasperpeulen authored Aug 10, 2023
2 parents dcc4164 + ad30797 commit 2cbb910
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/storybook-addon-designs/src/register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ export default function register(renderTarget: "panel" | "tab") {
match: ({ viewMode }) => viewMode === "design",
});
} else {
addons.addPanel(PanelName, {
addons.add(PanelName, {
type: types.PANEL,
title,
paramKey: ParameterName,
render({ active, key }) {
render({ active }) {
return (
<AddonPanel key={key} active={!!active}>
<AddonPanel active={!!active}>
<ErrorBoundary>
<Wrapper active={!!active} />
</ErrorBoundary>
Expand Down

0 comments on commit 2cbb910

Please sign in to comment.