about summary refs log tree commit diff
path: root/components/PostList/PurePostList.stories.js
diff options
context:
space:
mode:
Diffstat (limited to 'components/PostList/PurePostList.stories.js')
-rw-r--r--components/PostList/PurePostList.stories.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/PostList/PurePostList.stories.js b/components/PostList/PurePostList.stories.js
index 00516f8..3cb07f8 100644
--- a/components/PostList/PurePostList.stories.js
+++ b/components/PostList/PurePostList.stories.js
@@ -17,12 +17,14 @@ storiesOf('PurePostList', module)
   .add('loading', () => {
     return {
       components: { PurePostList },
-      template: `<pure-post-list :posts="posts" loading/>`
+      template: `<pure-post-list :posts="posts" loading/>`,
+      data: () => ({ posts: [] })
     }
   })
   .add('no posts', () => {
     return {
       components: { PurePostList },
-      template: `<pure-post-list :posts="posts"/>`
+      template: `<pure-post-list :posts="posts"/>`,
+      data: () => ({ posts: [] })
     }
   })