We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5969c commit a542bfeCopy full SHA for a542bfe
lib/editor/selectors/timetable.js
@@ -43,13 +43,18 @@ export const getTimetableColumns = createSelector(
43
pattern.patternStops.map((ps, index) => {
44
const stop = stops ? stops.find(st => st.stop_id === ps.stopId) : null
45
const stopName = stop ? stop.stop_name : ps.stopId
46
+ const stopId = stop && stop.stop_code
47
+ ? stop.stop_code
48
+ : stop && stop.stop_id
49
+ ? stop.stop_id
50
+ : ''
51
const abbreviatedStopName = stop
52
? getAbbreviatedStopName(stop)
53
: ps.stopId
54
const TIME_WIDTH = 80
55
columns.push({
56
name: abbreviatedStopName,
- title: stopName,
57
+ title: `${stopName} (${stopId})`,
58
width: TIME_WIDTH,
59
key: `stopTimes.${index}.arrivalTime`,
60
colSpan: '2',
0 commit comments