File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/manager/components/version Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import VersionSelectorDropdown from './VersionSelectorDropdown'
1818export type Props = {
1919 feedSource : Feed ,
2020 gtfsPlusValidation : GtfsPlusValidation ,
21- jobs : Array < ServerJob > ,
21+ jobs ? : Array < ServerJob > ,
2222 mergeVersions : typeof versionsActions . mergeVersions ,
2323 publishFeedVersion : typeof versionsActions . publishFeedVersion ,
2424 user : ManagerUserState ,
@@ -108,7 +108,7 @@ class FeedVersionActionsMTC extends Component<Props> {
108108 const end = + moment ( summary . endDate )
109109 const expired = end < now
110110
111- const jobsProcessingThisVersion = jobs . some ( job => job . feedVersionId === version . id )
111+ const jobsProcessingThisVersion = jobs && jobs . some ( job => job . feedVersionId === version . id )
112112
113113 const publishButtonDisabled = ! gtfsPlusValidation ||
114114 hasGtfsPlusBlockingIssue ||
You can’t perform that action at this time.
0 commit comments