Merge pull request 'remove url reachability check for download url as it may give cors error' (#12) from staging into master
All checks were successful
Release to Staging / build_and_release (push) Successful in 40s
All checks were successful
Release to Staging / build_and_release (push) Successful in 40s
Reviewed-on: #12
This commit is contained in:
commit
60317c2e8c
@ -337,10 +337,7 @@ export const ModForm = ({ existingModData }: ModFormProps) => {
|
||||
} else {
|
||||
for (let i = 0; i < formState.downloadUrls.length; i++) {
|
||||
const downloadUrl = formState.downloadUrls[i]
|
||||
if (
|
||||
!isValidUrl(downloadUrl.url) ||
|
||||
!(await isReachable(downloadUrl.url))
|
||||
) {
|
||||
if (!isValidUrl(downloadUrl.url)) {
|
||||
if (!errors.downloadUrls)
|
||||
errors.downloadUrls = Array(formState.downloadUrls.length)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user