Skip to content

Commit

Permalink
fix error for empty address
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Sep 6, 2024
1 parent bc53c80 commit d4db8c7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/sensor/SensorPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit d4db8c7

Please sign in to comment.