1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-25 07:49:37 +02:00

Add display_name to ReverseGeocode response and update AdventureModal

This commit is contained in:
Sean Morley 2024-10-31 23:47:02 -04:00
parent 25ed72afbc
commit a7a49227c4
4 changed files with 31 additions and 15 deletions

View file

@ -111,6 +111,15 @@
markers = [];
}
$: {
if (
reverseGeocodePlace?.display_name &&
adventure.location != reverseGeocodePlace.display_name
) {
adventure.location = reverseGeocodePlace.display_name;
}
}
let imageSearch: string = adventure.name || '';
async function removeImage(id: string) {

View file

@ -175,4 +175,5 @@ export type ReverseGeocode = {
region: string;
country: string;
is_visited: boolean;
display_name: string;
};