From d4db8c7e9738ddb401074ecff6664acd3a6fbe90 Mon Sep 17 00:00:00 2001 From: vol4tim Date: Fri, 6 Sep 2024 19:57:02 +0400 Subject: [PATCH] fix error for empty address --- src/components/sensor/SensorPopup.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/sensor/SensorPopup.vue b/src/components/sensor/SensorPopup.vue index 49e38e8..4f2dab4 100644 --- a/src/components/sensor/SensorPopup.vue +++ b/src/components/sensor/SensorPopup.vue @@ -192,11 +192,13 @@ export default { addressformatted() { let bufer = ""; - if (this.address.country) { - bufer += this.address.country; - } - if (this.address.address.length > 0) { - bufer += ", " + this.address.address.join(", "); + if (this.address) { + if (this.address.country) { + bufer += this.address.country; + } + if (this.address.address.length > 0) { + bufer += ", " + this.address.address.join(", "); + } } return bufer; },