File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,6 @@ env.yml-original
2828.env
2929! configurations /test /env.yml
3030scripts /* client.json
31+
32+ # Vs code settings
33+ .vscode /
Original file line number Diff line number Diff line change @@ -4,14 +4,12 @@ import objectPath from 'object-path'
44
55import { getAbbreviatedStopName , getTableById } from '../util/gtfs'
66import { isTimeFormat } from '../util/timetable'
7-
87import type {
98 GtfsStop ,
109 Pattern ,
1110 TimetableColumn ,
1211 Trip
1312} from '../../types'
14-
1513import type { AppState } from '../../types/reducers'
1614import type { EditorValidationIssue } from '../util/validation'
1715
@@ -152,7 +150,7 @@ const isCellValueInvalid = (
152150 let previousValue = null
153151 let previousIndex = colIndex - 1
154152 // Find previous stop time
155- while ( previousValue === null && previousIndex >= 0 ) {
153+ while ( previousValue === null && previousIndex >= 0 && ( columns [ previousIndex ] . type === 'ARRIVAL_TIME' || columns [ previousIndex ] . type === 'DEPARTURE_TIME' ) ) {
156154 const previousCol = columns [ previousIndex ]
157155 previousValue = previousCol && row && objectPath . get ( row , previousCol . key )
158156 previousIndex --
You can’t perform that action at this time.
0 commit comments