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'
|
className='inputMain'
|
||||||
name='title'
|
name='title'
|
||||||
placeholder='Download Title'
|
placeholder='Download Title'
|
||||||
value={title}
|
value={title || ''}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
<div className='inputWrapperMainBox'></div>
|
<div className='inputWrapperMainBox'></div>
|
||||||
@ -745,7 +745,7 @@ const DownloadUrlFields = React.memo(
|
|||||||
className='inputMain'
|
className='inputMain'
|
||||||
placeholder='Media URL'
|
placeholder='Media URL'
|
||||||
name='mediaUrl'
|
name='mediaUrl'
|
||||||
value={mediaUrl}
|
value={mediaUrl || ''}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -138,12 +138,14 @@ export const initializeFormState = (
|
|||||||
? _.cloneDeep(existingModData.downloadUrls)
|
? _.cloneDeep(existingModData.downloadUrls)
|
||||||
: [
|
: [
|
||||||
{
|
{
|
||||||
|
title: '',
|
||||||
url: '',
|
url: '',
|
||||||
hash: '',
|
hash: '',
|
||||||
signatureKey: '',
|
signatureKey: '',
|
||||||
malwareScanLink: '',
|
malwareScanLink: '',
|
||||||
modVersion: '',
|
modVersion: '',
|
||||||
customNote: ''
|
customNote: '',
|
||||||
|
mediaUrl: ''
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user