Skip to content

Commit

Permalink
Fix #1177
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Nov 8, 2019
1 parent 4e9b379 commit 3199754
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default {
geojson: {
handler (newVal) {
if(newVal.length) {
this.geographic.geographic_area_ids = []
if(newVal[0].properties.hasOwnProperty('radius')) {
this.geographic.radius = newVal[0].properties.radius
this.geographic.geo_json = JSON.stringify({ type: "Point", coordinates: newVal[0].geometry.coordinates })
Expand Down Expand Up @@ -133,6 +134,8 @@ export default {
this.geographic_areas.splice(index, 1)
},
addGeoArea (item) {
this.geographic.geo_json = undefined
this.geographic.radius = undefined
this.geographic.geographic_area_ids.push(item.id)
this.geographic_areas.push(item)
},
Expand Down

0 comments on commit 3199754

Please sign in to comment.