From 14a2685ae3b0f9757ff58f704e524a3dee5353eb Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Fri, 14 Feb 2025 15:52:36 +0300 Subject: [PATCH] fix dhcp initial values --- client/src/components/Settings/Dhcp/FormDHCPv6.tsx | 10 +--------- client/src/components/Settings/Dhcp/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/client/src/components/Settings/Dhcp/FormDHCPv6.tsx b/client/src/components/Settings/Dhcp/FormDHCPv6.tsx index 2f5cd2b8..41eba8c2 100644 --- a/client/src/components/Settings/Dhcp/FormDHCPv6.tsx +++ b/client/src/components/Settings/Dhcp/FormDHCPv6.tsx @@ -77,14 +77,6 @@ const FormDHCPv6 = ({ processingConfig, ipv6placeholders, interfaces, onSubmit } ( )} /> diff --git a/client/src/components/Settings/Dhcp/index.tsx b/client/src/components/Settings/Dhcp/index.tsx index fc807bb2..93a4239c 100644 --- a/client/src/components/Settings/Dhcp/index.tsx +++ b/client/src/components/Settings/Dhcp/index.tsx @@ -98,8 +98,8 @@ const Dhcp = () => { const methods = useForm({ mode: 'onBlur', defaultValues: { - v4: v4 || DEFAULT_V4_VALUES, - v6: v6 || DEFAULT_V6_VALUES, + v4, + v6, interface_name: interfaceName || '', }, });