diff --git a/Changelog.md b/Changelog.md index d5726e3db..254f1f38c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -36,6 +36,7 @@ - 修复日志刷新时页面可能被强制滚动到底部的问题 - 修复全局扩展脚本中的通配符配置可能生成无效 YAML 的问题 - 修复代理组筛选后定位及滚动位置恢复异常的问题 +- 修复编辑订阅配置时清空 HTTP 请求超时会报错的问题
✨ 新增功能 diff --git a/src/components/profile/profile-viewer.tsx b/src/components/profile/profile-viewer.tsx index 6fb3750eb..0fcf1ed84 100644 --- a/src/components/profile/profile-viewer.tsx +++ b/src/components/profile/profile-viewer.tsx @@ -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