mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
fix: crash when geo-update-interval is null in config
This commit is contained in:
@@ -148,10 +148,12 @@ const GeoData: React.FC = () => {
|
||||
<Input
|
||||
size="sm"
|
||||
type="number"
|
||||
className="w-[100px]"
|
||||
value={geoUpdateInterval.toString()}
|
||||
className="w-25"
|
||||
value={(geoUpdateInterval ?? 24).toString()}
|
||||
onValueChange={(v) => {
|
||||
patchControledMihomoConfig({ 'geo-update-interval': parseInt(v) })
|
||||
const nextInterval = parseInt(v)
|
||||
if (Number.isNaN(nextInterval)) return
|
||||
patchControledMihomoConfig({ 'geo-update-interval': nextInterval })
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
|
||||
Reference in New Issue
Block a user