소스 검색

Update Profile.vue

Daniel Supernault 6 년 전
부모
커밋
0b13561ee8
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      resources/assets/js/components/Profile.vue

+ 5 - 3
resources/assets/js/components/Profile.vue

@@ -732,9 +732,11 @@ export default {
 					'id[]': this.profileId
 				}
 			}).then(res => {
-				this.relationship = res.data[0];
-				if(res.data[0].blocking == true) {
-					this.warning = true;
+				if(res.length) {
+					this.relationship = res.data[0];
+					if(res.data[0].blocking == true) {
+						this.warning = true;
+					}
 				}
 			});
 		},