Daniel Supernault 6 år sedan
förälder
incheckning
79e9337f94
1 ändrade filer med 2 tillägg och 0 borttagningar
  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
 					'id[]': this.profileId
 				}
 				}
 			}).then(res => {
 			}).then(res => {
+				if(res.data.length) {
 					this.relationship = res.data[0];
 					this.relationship = res.data[0];
 					if(res.data[0].blocking == true) {
 					if(res.data[0].blocking == true) {
 						this.warning = true;
 						this.warning = true;
 					}
 					}
+				}
 			});
 			});
 		},
 		},