Web: Files: correct download cancellation

This commit is contained in:
Dmitry Sychugov 2021-08-16 15:48:07 +05:00
parent 6b825eed90
commit 984d922388

View File

@ -21,8 +21,8 @@ export default function withBadges(WrappedComponent) {
if (isAdmin || access === 0) {
setIsLoading(true);
return lockFileAction(id, !locked)
.then(() => setIsLoading(false))
.catch((err) => toastr.error(err));
.catch((err) => toastr.error(err))
.finally(() => setIsLoading(false));
}
return;
};