Web: Files: correct download cancellation
This commit is contained in:
parent
6b825eed90
commit
984d922388
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user