fix(download): reset on new fields
All checks were successful
Release to Staging / build_and_release (push) Successful in 45s

This commit is contained in:
enes 2025-01-21 17:36:50 +01:00
parent 1e9c24e013
commit 787231ce0d
2 changed files with 5 additions and 3 deletions

View File

@ -602,7 +602,7 @@ const DownloadUrlFields = React.memo(
className='inputMain'
name='title'
placeholder='Download Title'
value={title}
value={title || ''}
onChange={handleChange}
/>
<div className='inputWrapperMainBox'></div>
@ -745,7 +745,7 @@ const DownloadUrlFields = React.memo(
className='inputMain'
placeholder='Media URL'
name='mediaUrl'
value={mediaUrl}
value={mediaUrl || ''}
onChange={handleChange}
/>
</div>

View File

@ -138,12 +138,14 @@ export const initializeFormState = (
? _.cloneDeep(existingModData.downloadUrls)
: [
{
title: '',
url: '',
hash: '',
signatureKey: '',
malwareScanLink: '',
modVersion: '',
customNote: ''
customNote: '',
mediaUrl: ''
}
]
})