about summary refs log tree commit diff
path: root/components/PostList
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-12-01 14:40:25 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-12-01 14:40:25 +0100
commit5bd9880c585cbfde37640e4929009cee5421a2a4 (patch)
tree54da696a013555646e4b7a55ed0394294c4addbd /components/PostList
parenta28d5383f973e26da70b738f4a319083c45551af (diff)
downloadpuszcza-5bd9880c585cbfde37640e4929009cee5421a2a4.tar.gz
puszcza-5bd9880c585cbfde37640e4929009cee5421a2a4.zip
Fix postlink size
Diffstat (limited to 'components/PostList')
-rw-r--r--components/PostList/PostList.vue11
1 files changed, 4 insertions, 7 deletions
diff --git a/components/PostList/PostList.vue b/components/PostList/PostList.vue
index 2d1bb2d..781099f 100644
--- a/components/PostList/PostList.vue
+++ b/components/PostList/PostList.vue
@@ -15,21 +15,18 @@ export default {
       required: false
     }
   },
-  async asyncData() {
-    return {
-      loading: process.client,
-      rawPosts: process.client ? undefined : k.getPosts()
-    }
-  },
   data() {
     return {
       loading: true,
-      rawPosts: []
+      rawPosts: undefined
     }
   },
   mounted() {
     if (process.client && this.rawPosts === undefined) {
       this.loadPostsClient()
+    } else {
+      this.rawPosts = k.getPosts()
+      this.loading = false
     }
   },
   computed: {