mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-22 19:52:14 +08:00
fix: handle empty HTTP request timeout in profile editor
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
- 修复日志刷新时页面可能被强制滚动到底部的问题
|
||||
- 修复全局扩展脚本中的通配符配置可能生成无效 YAML 的问题
|
||||
- 修复代理组筛选后定位及滚动位置恢复异常的问题
|
||||
- 修复编辑订阅配置时清空 HTTP 请求超时会报错的问题
|
||||
|
||||
<details>
|
||||
<summary><strong> ✨ 新增功能 </strong></summary>
|
||||
|
||||
@@ -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