fix remaining eslint error

This commit is contained in:
DaneEveritt 2022-06-26 15:30:05 -04:00
parent dc84af9937
commit 922d75f471
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
15 changed files with 30 additions and 28 deletions

View file

@ -41,7 +41,7 @@ export default ({ backup }: Props) => {
clearFlashes('backups');
getBackupDownloadUrl(uuid, backup.uuid)
.then((url) => {
// @ts-ignore
// @ts-expect-error this is valid
window.location = url;
})
.catch((error) => {

View file

@ -100,7 +100,7 @@ const FileDropdownMenu = ({ file }: { file: FileObject }) => {
getFileDownloadUrl(uuid, join(directory, file.name))
.then((url) => {
// @ts-ignore
// @ts-expect-error this is valid
window.location = url;
})
.catch((error) => clearAndAddHttpError({ key: 'files', error }))