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
28
28
.env
29
29
! configurations /test /env.yml
30
30
scripts /* 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'
4
4
5
5
import { getAbbreviatedStopName , getTableById } from '../util/gtfs'
6
6
import { isTimeFormat } from '../util/timetable'
7
-
8
7
import type {
9
8
GtfsStop ,
10
9
Pattern ,
11
10
TimetableColumn ,
12
11
Trip
13
12
} from '../../types'
14
-
15
13
import type { AppState } from '../../types/reducers'
16
14
import type { EditorValidationIssue } from '../util/validation'
17
15
@@ -152,7 +150,7 @@ const isCellValueInvalid = (
152
150
let previousValue = null
153
151
let previousIndex = colIndex - 1
154
152
// 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' ) ) {
156
154
const previousCol = columns [ previousIndex ]
157
155
previousValue = previousCol && row && objectPath . get ( row , previousCol . key )
158
156
previousIndex --
You can’t perform that action at this time.
0 commit comments