File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11// @flow
22
33import { latLngBounds } from 'leaflet'
4+
45import { getGtfsSpec } from '../../common/util/config'
56import {
67 generateUID ,
@@ -9,7 +10,6 @@ import {
910 idealTextColor
1011} from '../../common/util/util'
1112import { getEntityTableString } from '../../gtfs/util'
12-
1313import type {
1414 // EditorTableData,
1515 Entity ,
@@ -260,6 +260,9 @@ export function getEntityName (entity: any): string {
260260 route . route_long_name !== '""' ) {
261261 return `${route . route_short_name } - ${route . route_long_name } `
262262 } else if ( route . route_short_name && route . route_short_name !== '""') {
263+ if ( route . route_desc && route . route_desc !== '""' ) {
264+ return `${ route . route_short_name } - ${ route . route_desc } `
265+ }
263266 return route . route_short_name
264267 } else if ( route . route_long_name && route . route_long_name !== '""') {
265268 return route . route_long_name
You can’t perform that action at this time.
0 commit comments