From 5bd9880c585cbfde37640e4929009cee5421a2a4 Mon Sep 17 00:00:00 2001
From: Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>
Date: Sun, 1 Dec 2019 14:40:25 +0100
Subject: Fix postlink size

---
 components/PostList/PostList.vue | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

(limited to 'components/PostList/PostList.vue')

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: {
-- 
cgit 1.4.1

