Skip to content

Commit 7a6b5cd

Browse files
committed
fix(editor): fetch exception dates in main GraphQL query
This allows us to do better UI-side validation of whether there are duplicate dates in the exceptions re #561
1 parent 017a634 commit 7a6b5cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/editor/actions/editor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ export function fetchBaseGtfs ({
411411
schedule_exceptions (limit: -1) {
412412
id
413413
name
414+
# Fetch dates to ensure we can do validation in the UI
415+
# (avoid duplicate dates).
416+
dates
414417
}
415418
stops (limit: -1) {
416419
id

0 commit comments

Comments
 (0)