fix: handle empty HTTP request timeout in profile editor

This commit is contained in:
wonfen
2026-07-13 01:31:44 +08:00
parent 7155047e02
commit eaf4fc2c17
2 changed files with 3 additions and 0 deletions
@@ -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