Commit 0d9c956 1 parent facb8cc commit 0d9c956 Copy full SHA for 0d9c956
File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ const isCellValueInvalid = (
157
157
tripIds : Array < string >
158
158
) : ?EditorValidationIssue => {
159
159
const col = columns [ colIndex ]
160
+ const isFlexInvolved = columns . some ( isFlexStopTime )
160
161
161
162
if ( isTimeFormat ( col . type ) ) {
162
163
// FIXME: This does not yet support validating frequency start/end times.
@@ -176,7 +177,7 @@ const isCellValueInvalid = (
176
177
// Ensure value is increasing over previous value
177
178
// Flexible stop times (because intra zonal trips are represented by a duplicate stop time) can
178
179
// include the same start and end pickup times back to back and so must avoid this check.
179
- const isInvalid = ! isFlexStopTime ( col ) && val < previousValue
180
+ const isInvalid = ! isFlexInvolved && val < previousValue
180
181
return isInvalid
181
182
? {
182
183
field : col . key ,
You can’t perform that action at this time.
0 commit comments