Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Fix display of coordinates when editing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Jul 26, 2019
1 parent 73a92ec commit 2b7e2b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.1.7] - 2019-07-26
### Fixed
- display of existing location coordinates on map when editing and not using
default field names.

## [0.1.6] - 2019-07-18
### Fixed
- url of default map to use HTTPS.
Expand Down
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default {
setInitialValue: function () {
this.value = {
latitude: this.field.value.latitude || 0,
longitude: this.field.value.longitude || 0,
latitude: this.field.value[this.field.latitude || "latitude"] || 0,
longitude: this.field.value[this.field.longitude || "longitude"] || 0,
};
},
},
Expand Down

0 comments on commit 2b7e2b1

Please sign in to comment.