diff --git a/src/containers/Proxies/components/Proxy/index.tsx b/src/containers/Proxies/components/Proxy/index.tsx index 8467a5b..a4afb3d 100644 --- a/src/containers/Proxies/components/Proxy/index.tsx +++ b/src/containers/Proxies/components/Proxy/index.tsx @@ -43,7 +43,7 @@ export function Proxy (props: ProxyProps) { } useEffect(() => { - setDelay(config.history.length ? config.history.slice(-1)[0].delay : 0) + setDelay(config.history && config.history.length ? config.history.slice(-1)[0].delay : 0) }, [config]) useLayoutEffect(() => {