fix remaining eslint error
This commit is contained in:
parent
dc84af9937
commit
922d75f471
15 changed files with 30 additions and 28 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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 }))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue