From 50c635566a20d650f9e272b66e8fbed1607186ae Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Tue, 12 Sep 2017 23:59:56 -0700 Subject: [PATCH] simplify --- modules/primer-breadcrumb/stories.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/primer-breadcrumb/stories.js b/modules/primer-breadcrumb/stories.js index 2f0037b3..a9b1bca3 100644 --- a/modules/primer-breadcrumb/stories.js +++ b/modules/primer-breadcrumb/stories.js @@ -5,6 +5,6 @@ import storiesFromMarkdown from '../../.storybook/lib/storiesFromMarkdown' const stories = storiesOf('Breadcrumb', module) storiesFromMarkdown(require.context('.', true, /\.md$/)) - .forEach((story, i) => { - stories.add(`story #${i + 1}`, () => story) + .forEach(({story, title}) => { + stories.add(title, () => story) })