File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,8 @@ export class stationStore extends Events {
165165 return this . StationData
166166 }
167167 return new Promise ( ( resolve , reject ) => {
168- if ( typeof this . StationData [ station ] !== 'undefined' ) {
169- return resolve ( this . StationData [ station ] )
168+ if ( typeof this . StationData [ region + '|' + station ] !== 'undefined' ) {
169+ return resolve ( this . StationData [ region + '|' + station ] )
170170 } else if ( typeof this . stationCache [ station ] !== 'undefined' ) {
171171 return resolve ( this . stationCache [ station ] )
172172 }
@@ -211,11 +211,12 @@ export class stationStore extends Events {
211211 let description = `Stop ${ no } / ${ data . stop_name } `
212212 let icon = this . getIcon ( no )
213213
214+ let zName = stopName
214215 if ( stopNumber . split ( '+' ) . length > 1 ) {
215- stopName = data . stop_name
216+ zName = data . stop_name
216217 }
217218 this . StationData [ region + '|' + no ] = {
218- name : stopName || data . stop_name ,
219+ name : zName || data . stop_name ,
219220 stop_lat : data . stop_lat ,
220221 stop_lon : data . stop_lon ,
221222 description : description ,
Original file line number Diff line number Diff line change @@ -249,9 +249,6 @@ class Station extends React.Component {
249249 this . setState ( {
250250 saveModal : true
251251 } )
252- setTimeout ( ( ) => {
253- this . saveInput . focus ( )
254- } , 200 )
255252 }
256253 triggerSaveAdd = ( ) => {
257254 this . setState ( {
You can’t perform that action at this time.
0 commit comments