metadata: fix text when address lookup fails (close #719)
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/743/head
parent
9d9ef6654e
commit
a87c29a2fa
|
@ -279,7 +279,15 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
address(): string | undefined {
|
||||
return this.baseInfo.address;
|
||||
if (this.baseInfo.address) {
|
||||
return this.baseInfo.address;
|
||||
}
|
||||
|
||||
if (this.lat && this.lon) {
|
||||
return `${this.lat.toFixed(6)}, ${this.lon.toFixed(6)}`;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
},
|
||||
|
||||
lat(): number {
|
||||
|
|
Loading…
Reference in New Issue