Browse Source

Bugfixes

dev
sipp11 6 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
if (one.service !== null) {
if (isNaN(one.service)) {
if (one.service && isNaN(one.service)) {
serviceValue = {
...one.service,
value: one.service.id,

5
src/container/Geo.js

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

Loading…
Cancel
Save