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 ef765d9 commit dcaa7e0Copy full SHA for dcaa7e0
lib/editor/components/timetable/TimetableEditor.js
@@ -109,6 +109,10 @@ export default class TimetableEditor extends Component {
109
// If a frequency-based trip, never use exact times. NOTE: there is no
110
// column to edit this field in the timetable grid.
111
objectPath.set(newRow, 'frequencies.0.exactTimes', 0)
112
+ } else {
113
+ // If not using frequencies, set frequencies to empty array so that SQL backend
114
+ // is happy.
115
+ objectPath.set(newRow, 'frequencies', [])
116
}
117
objectPath.set(newRow, 'feedId', this.props.feedSource.id)
118
objectPath.set(newRow, 'patternId', activePattern.patternId)
0 commit comments