Daniel Supernault пре 6 година
родитељ
комит
79e9337f94
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      resources/assets/js/components/Profile.vue

+ 2 - 0
resources/assets/js/components/Profile.vue

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