Skip to content

Commit

Permalink
Fail safe fetch Latitude and longitude values
Browse files Browse the repository at this point in the history
  • Loading branch information
rapito committed Dec 10, 2015
1 parent 0086ea0 commit 88b71b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/autoform-map.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AutoForm.addInputType 'map',
lat = node.find('.js-lat').val()
lng = node.find('.js-lng').val()

if lat.length > 0 and lng.length > 0
if lat?.length > 0 and lng?.length > 0
lat: lat
lng: lng
contextAdjust: (ctx) ->
Expand Down

0 comments on commit 88b71b5

Please sign in to comment.