Skip to content

Commit 6c89ecc

Browse files
committed
Fix Naming Bug in Multi Stop
1 parent 61f9ce6 commit 6c89ecc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

js/stores/stationStore.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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,

js/views/station.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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({

0 commit comments

Comments
 (0)