mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-30 18:52:12 +08:00
fix: handle empty HTTP request timeout in profile editor
This commit is contained in:
@@ -100,6 +100,8 @@ export function ProfileViewer({ onChange, ref }: ProfileViewerProps) {
|
||||
const option = form.option ? { ...form.option } : undefined
|
||||
if (option?.timeout_seconds) {
|
||||
option.timeout_seconds = +option.timeout_seconds
|
||||
} else if (option) {
|
||||
option.timeout_seconds = undefined
|
||||
}
|
||||
if (option?.update_interval) {
|
||||
option.update_interval = +option.update_interval
|
||||
|
||||
Reference in New Issue
Block a user