Skip to content

Commit

Permalink
Merge pull request #1448 from storybooks/Fix-addon-notes
Browse files Browse the repository at this point in the history
Fix addon notes
  • Loading branch information
usulpro committed Jul 11, 2017
2 parents f2054b9 + 0c9d561 commit e13d727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/notes/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { WithNotes as ReactWithNotes } from './react';
export const addonNotes = ({ notes }) => {
const channel = addons.getChannel();

return getStory => () => {
return getStory => (context) => {
// send the notes to the channel before the story is rendered
channel.emit('storybook/notes/add_notes', notes);
return getStory();
return getStory(context);
};
};

Expand Down

0 comments on commit e13d727

Please sign in to comment.