Correctly handle error; don't overwrite laravel method

This commit is contained in:
Dane Everitt 2021-01-30 18:07:48 -08:00
parent 32fb21d0b7
commit f558bc880a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 4 additions and 3 deletions

View file

@ -71,7 +71,8 @@ export default ({ backup }: Props) => {
console.error(error);
clearAndAddHttpError({ key: 'backups', error });
})
.then(() => setLoading(false));
.then(() => setLoading(false))
.then(() => setModal(''));
};
return (