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 589b6c6 commit ef69da3Copy full SHA for ef69da3
lib/editor/util/validation.js
@@ -136,7 +136,11 @@ export function validate (
136
return false
137
}
138
case 'TEXT':
139
- if (name === 'stop_name' && locationType !== null && (typeof locationType === 'number' && locationType <= 2)) {
+ if (name === 'stop_name' &&
140
+ !value &&
141
+ locationType !== null &&
142
+ (typeof locationType === 'number' && locationType <= 2)
143
+ ) {
144
return validationIssue('Stop name is required for stop, station, and entrance location types.')
145
146
if (name === 'route_short_name' && !value && entity && entity.route_long_name) {
0 commit comments