Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ env.yml-original
.env
!configurations/test/env.yml
scripts/*client.json

# Vs code settings
.vscode/
4 changes: 1 addition & 3 deletions lib/editor/selectors/timetable.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ import objectPath from 'object-path'

import { getAbbreviatedStopName, getTableById } from '../util/gtfs'
import { isTimeFormat } from '../util/timetable'

import type {
GtfsStop,
Pattern,
TimetableColumn,
Trip
} from '../../types'

import type { AppState } from '../../types/reducers'
import type { EditorValidationIssue } from '../util/validation'

Expand Down Expand Up @@ -152,7 +150,7 @@ const isCellValueInvalid = (
let previousValue = null
let previousIndex = colIndex - 1
// Find previous stop time
while (previousValue === null && previousIndex >= 0) {
while (previousValue === null && previousIndex >= 0 && (columns[previousIndex].type === 'ARRIVAL_TIME' || columns[previousIndex].type === 'DEPARTURE_TIME')) {
const previousCol = columns[previousIndex]
previousValue = previousCol && row && objectPath.get(row, previousCol.key)
previousIndex--
Expand Down