Explorar o código

Update Profile component

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
47fdf0f0b7
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

@@ -352,6 +352,7 @@ export default {
 		fetchProfile() {
 			axios.get('/api/v1/accounts/' + this.profileId).then(res => {
 				this.profile = res.data;
+				this.loading = false;
 			});
 			axios.get('/api/v1/accounts/verify_credentials').then(res => {
 				this.user = res.data;
@@ -401,7 +402,6 @@ export default {
 					this.timeline.push(...data);
 					this.timelinePage += 1;
 					$state.loaded();
-					this.loading = false;
 				} else {
 					$state.complete();
 				}