Преглед на файлове

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) {
-			if(this.loading) {
+			if(this.loading || this.timeline < 9) {
 				return;
 			}
 			let apiUrl = '/api/v1/accounts/' + this.profileId + '/statuses';