Daniel Supernault 6 лет назад
Родитель
Сommit
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
 					'id[]': this.profileId
 				}
 				}
 			}).then(res => {
 			}).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;
+					}
 				}
 				}
 			});
 			});
 		},
 		},