Skip to content

Commit

Permalink
fix: download button downloads index.html instead of spec with CLI
Browse files Browse the repository at this point in the history
fixes #594
  • Loading branch information
RomanHotsiy committed Aug 8, 2018
1 parent 23559fb commit 334f904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ApiInfo/ApiInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
<DownloadButton
download={downloadFilename}
target="_blank"
href={downloadLink || '#'}
href={downloadLink}
onClick={this.handleDownloadClick}
>
Download
Expand Down
1 change: 1 addition & 0 deletions src/components/ApiInfo/styled.elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const DownloadButton = styled.a`
padding: 4px 8px 4px;
display: inline-block;
text-decoration: none;
cursor: pointer;
${extensionsHook('DownloadButton')};
`;
Expand Down

0 comments on commit 334f904

Please sign in to comment.