Browse Source

Update Timeline.vue

marcin mikołajczak 6 years ago
parent
commit
76aab4b435
1 changed files with 5 additions and 3 deletions
  1. 5 3
      resources/assets/js/components/Timeline.vue

+ 5 - 3
resources/assets/js/components/Timeline.vue

@@ -922,7 +922,8 @@
 					if(res.data.length > 0) {
 						this.following.push(...res.data);
 						this.followingCursor++;
-					} else {
+					}
+                    if(res.data.length < 10) {
 						this.followingMore = false;
 					}
 				});
@@ -939,11 +940,12 @@
 					if(res.data.length > 0) {
 						this.followers.push(...res.data);
 						this.followerCursor++;
-					} else {
+					}
+                    if(res.data.length < 10) {
 						this.followerMore = false;
 					}
 				});
 			}
 		}
 	}
-</script>
+</script>