From 1f886f556f286d9db7bf6b747e07f3233e786f82 Mon Sep 17 00:00:00 2001 From: Landon Reed Date: Tue, 7 May 2019 12:41:57 -0400 Subject: [PATCH] fix: fix lint and flow --- lib/manager/actions/status.js | 1 + lib/manager/components/version/VersionButtonToolbar.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/manager/actions/status.js b/lib/manager/actions/status.js index 77c5593ac..703aa7d9d 100644 --- a/lib/manager/actions/status.js +++ b/lib/manager/actions/status.js @@ -160,6 +160,7 @@ export function handleFinishedJob (job: ServerJob) { // immediately deleted, the server does not also provide an option to // download via S3 (it never uploads the file to S3). window.location.assign(`${API_PREFIX}downloadshapes/${job.jobId}`) + break case 'EXPORT_SNAPSHOT_TO_GTFS': if (job.parentJobId) { console.log('Not downloading snapshot GTFS. Export job part of feed version creation.') diff --git a/lib/manager/components/version/VersionButtonToolbar.js b/lib/manager/components/version/VersionButtonToolbar.js index 4f85222a8..08a64f9c1 100644 --- a/lib/manager/components/version/VersionButtonToolbar.js +++ b/lib/manager/components/version/VersionButtonToolbar.js @@ -38,7 +38,7 @@ export default class VersionButtonToolbar extends Component { }) } - _onDownloadShapes = (type: string) => { + _onDownloadShapes = (type: 'STOPS' | 'ROUTES') => { this.props.exportVersionShapes(this.props.version.id, type) }