Skip to content

Commit

Permalink
fix: prevent form value overwrite during initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbikai committed Oct 23, 2024
1 parent bd35147 commit e43f64d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion components/dns/dns-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export function DNSForm({ onSearch }) {
const queryValue = searchParams.get(key)

if (queryValue) {
form.setValue(key, queryValue)
setTimeout(() => {
form.setValue(key, queryValue)
}, 0)
}
}
}, [])
Expand Down
2 changes: 1 addition & 1 deletion config/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const CLOUDFLARE_REGIONS = {
},
lb1: {
provider: 'cloudflare',
ip: '172.69.84.133',
ip: '172.69.84.80',
},
ps1: {
provider: 'cloudflare',
Expand Down

0 comments on commit e43f64d

Please sign in to comment.