Skip to content

Commit

Permalink
Merge pull request #8633 from jung-han/7005-addon-notes-key-warning
Browse files Browse the repository at this point in the history
Addon-notes: Add key to render function
  • Loading branch information
shilman authored Oct 30, 2019
2 parents 536a0bd + 4fa0fd0 commit 17e422e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/notes/src/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function register(type: types) {
title: 'Notes',
route: ({ storyId }) => `/info/${storyId}`, // todo add type
match: ({ viewMode }) => viewMode === 'info', // todo add type
render: ({ active }) => <Panel api={api} active={active} />,
render: ({ active, key }) => <Panel api={api} active={active} key={key} />,
paramKey: PARAM_KEY,
});
});
Expand Down

0 comments on commit 17e422e

Please sign in to comment.