Fix auto downloads (#7021)

This commit is contained in:
saltrafael 2021-09-06 11:06:07 -03:00 committed by GitHub
parent 95278f1da1
commit f246992615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,6 +99,7 @@ function FileActions(props: Props) {
React.useEffect(() => {
if (downloadClicked && streamingUrl) {
webDownloadClaim(streamingUrl, fileName);
setDownloadClicked(false);
}
}, [downloadClicked, streamingUrl, fileName]);
// @endif