fix(download): reset on new fields
All checks were successful
Release to Staging / build_and_release (push) Successful in 45s
All checks were successful
Release to Staging / build_and_release (push) Successful in 45s
This commit is contained in:
parent
1e9c24e013
commit
787231ce0d
@ -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>
|
||||
|
@ -138,12 +138,14 @@ export const initializeFormState = (
|
||||
? _.cloneDeep(existingModData.downloadUrls)
|
||||
: [
|
||||
{
|
||||
title: '',
|
||||
url: '',
|
||||
hash: '',
|
||||
signatureKey: '',
|
||||
malwareScanLink: '',
|
||||
modVersion: '',
|
||||
customNote: ''
|
||||
customNote: '',
|
||||
mediaUrl: ''
|
||||
}
|
||||
]
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user