Skip to content

Commit

Permalink
fix(project-settings): fix type for default location lat/lng
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Sep 22, 2017
1 parent becbe92 commit c98ccdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/manager/components/GeneralSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ export default class GeneralSettings extends Component {
bounds: bounds,
onConfirm: (marker) => {
if (marker) {
const defaultLocationLat = marker.lat.toFixed(6)
const defaultLocationLon = marker.lng.toFixed(6)
// ReactDOM.findDOMNode(this.refs.defaultLocation).value = `${defaultLocationLat},${defaultLocationLon}`
const defaultLocationLat = +marker.lat.toFixed(6)
const defaultLocationLon = +marker.lng.toFixed(6)
this.setState(update(this.state, { general: { $merge: {defaultLocationLat, defaultLocationLon} } }))
}
}
Expand All @@ -137,6 +136,7 @@ export default class GeneralSettings extends Component {
}

render () {
console.log(this.state)
const messages = getComponentMessages('ProjectSettings')
const {project, editDisabled} = this.props
const noEdits = Object.keys(this.state.general).length === 0 && this.state.general.constructor === Object
Expand Down

0 comments on commit c98ccdf

Please sign in to comment.