code refactoring

This commit is contained in:
2023-10-24 15:29:20 +02:00
parent 38d8bb8e40
commit 0c7415df28
4 changed files with 44 additions and 19 deletions

View File

@@ -171,7 +171,9 @@ export default function DownloadDialog({
const resetInput = () => {
urlInputRef.current!.value = ''
customFilenameInputRef.current!.value = ''
if (customFilenameInputRef.current) {
customFilenameInputRef.current!.value = ''
}
}
return (