Show address location, not reporter location, in the status page
This commit is contained in:
parent
59e58840c9
commit
4a28a16639
1 changed files with 9 additions and 2 deletions
|
|
@ -173,13 +173,20 @@ const district = computedAsync(async (): Promise<District | undefined> => {
|
||||||
return await storeDistrict.byURI(report.value.district);
|
return await storeDistrict.byURI(report.value.district);
|
||||||
});
|
});
|
||||||
const markers = computed((): Marker[] => {
|
const markers = computed((): Marker[] => {
|
||||||
if (!(report.value && report.value.location)) {
|
if (
|
||||||
|
!(
|
||||||
|
report.value &&
|
||||||
|
report.value.address.location &&
|
||||||
|
(report.value.address.location.latitude ||
|
||||||
|
report.value.address.location.longitude)
|
||||||
|
)
|
||||||
|
) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
id: props.id,
|
id: props.id,
|
||||||
location: report.value.location,
|
location: report.value.address.location,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue