瀏覽代碼

Update profile.vue, fix race condition in infinitescroll

Daniel Supernault 6 年之前
父節點
當前提交
bf0cbdf4e9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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';