Skip to content

Commit

Permalink
fix(editor): fix new calendar writes
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Feb 15, 2018
1 parent dcaa7e0 commit 4985f49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/editor/util/gtfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ export function generateNullProps (component: string): any {
.forEach(fieldName => { props[fieldName] = null })
if (component === 'fare') {
props.fare_rules = []
} else if (component === 'calendar') {
// FIXME: Need to set days of week manually (null values result in failed
// write operation).
props.monday = 0
props.tuesday = 0
props.wednesday = 0
props.thursday = 0
props.friday = 0
props.saturday = 0
props.sunday = 0
}
return props
}
Expand Down

0 comments on commit 4985f49

Please sign in to comment.