fix: download button downloads index.html instead of spec with CLI

fixes #594
This commit is contained in:
Roman Hotsiy 2018-08-08 12:02:56 +03:00
parent 23559fbece
commit 334f9047a8
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,7 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
<DownloadButton
download={downloadFilename}
target="_blank"
href={downloadLink || '#'}
href={downloadLink}
onClick={this.handleDownloadClick}
>
Download

View File

@ -20,6 +20,7 @@ export const DownloadButton = styled.a`
padding: 4px 8px 4px;
display: inline-block;
text-decoration: none;
cursor: pointer;
${extensionsHook('DownloadButton')};
`;