Explorar o código

Update profile.vue, fix race condition in infinitescroll

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
bf0cbdf4e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
-			if(this.loading) {
+			if(this.loading || this.timeline < 9) {
 				return;
 			}
 			let apiUrl = '/api/v1/accounts/' + this.profileId + '/statuses';