Bläddra i källkod

Update profile.vue, fix race condition in infinitescroll

Daniel Supernault 6 år sedan
förälder
incheckning
bf0cbdf4e9
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      resources/assets/js/components/Profile.vue

+ 1 - 1
resources/assets/js/components/Profile.vue

@@ -580,7 +580,7 @@ export default {
 		},
 		},
 
 
 		infiniteTimeline($state) {
 		infiniteTimeline($state) {
-			if(this.loading) {
+			if(this.loading || this.timeline < 9) {
 				return;
 				return;
 			}
 			}
 			let apiUrl = '/api/v1/accounts/' + this.profileId + '/statuses';
 			let apiUrl = '/api/v1/accounts/' + this.profileId + '/statuses';