mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 14:29:36 +02:00
Fix detection of custom locations in AdventureModal
This commit is contained in:
parent
954c154add
commit
c3f37b66d0
1 changed files with 4 additions and 2 deletions
|
@ -93,8 +93,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
is_custom_location =
|
is_custom_location = adventure.location != reverseGeocodePlace?.display_name;
|
||||||
adventure.location !== reverseGeocodePlace?.display_name || !reverseGeocodePlace;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (adventure.longitude && adventure.latitude) {
|
if (adventure.longitude && adventure.latitude) {
|
||||||
|
@ -300,6 +299,9 @@
|
||||||
}
|
}
|
||||||
reverseGeocodePlace = data;
|
reverseGeocodePlace = data;
|
||||||
|
|
||||||
|
console.log(reverseGeocodePlace);
|
||||||
|
console.log(is_custom_location);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
reverseGeocodePlace &&
|
reverseGeocodePlace &&
|
||||||
reverseGeocodePlace.display_name &&
|
reverseGeocodePlace.display_name &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue