Skip to content

Commit

Permalink
fix: download button opens in new tab instead of downloading
Browse files Browse the repository at this point in the history
fixes #1247
  • Loading branch information
RomanHotsiy committed May 9, 2020
1 parent 40a4e5f commit b59faad
Showing 1 changed file with 1 addition 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> {
<p>
Download OpenAPI specification:
<DownloadButton
download={downloadFilename}
download={downloadFilename || true}
target="_blank"
href={downloadLink}
onClick={this.handleDownloadClick}
Expand Down

0 comments on commit b59faad

Please sign in to comment.