diff --git a/frontend/src/api.js b/frontend/src/api.js index aa6ac9f..03a87b3 100644 --- a/frontend/src/api.js +++ b/frontend/src/api.js @@ -4,7 +4,7 @@ import {setLogin} from 'reducers/login' import configPromise from 'config' import download from 'downloadjs' -function getFileNameFromContentDispostionHeader(contentDisposition: string): string | undefined { +function getFileNameFromContentDispostionHeader(contentDisposition) { const standardPattern = /filename=(["']?)(.+)\1/i const wrongPattern = /filename=([^"'][^;"'\n]+)/i