Browse Source

Bugfixes

dev
sipp11 7 years ago
parent
commit
b6145d4841
  1. 2
      src/components/TripForm.js
  2. 5
      src/container/Geo.js

2
src/components/TripForm.js

@ -126,7 +126,7 @@ class TripForm extends Component {
})) }))
let serviceValue = null let serviceValue = null
if (one.service !== null) { if (one.service !== null) {
if (isNaN(one.service)) { if (one.service && isNaN(one.service)) {
serviceValue = { serviceValue = {
...one.service, ...one.service,
value: one.service.id, value: one.service.id,

5
src/container/Geo.js

@ -183,7 +183,7 @@ class Geo extends Component {
} }
renderStopMarkers() { renderStopMarkers() {
const { count, results } = this.props.stop const { count, results, query } = this.props.stop
if (count < 1) if (count < 1)
return null return null
@ -201,8 +201,9 @@ class Geo extends Component {
"type": "FeatureCollection", "type": "FeatureCollection",
"features": arrStops "features": arrStops
} }
return <GeoJSON return <GeoJSON
key={`stops-all`} key={`stops-${query}-${count}`}
data={stopCollection} data={stopCollection}
pointToLayer={(feat, latlon) => { pointToLayer={(feat, latlon) => {
return ( return (

Loading…
Cancel
Save