diff --git a/src/renderer/component/modals/add-dns.component.tsx b/src/renderer/component/modals/add-dns.component.tsx index 241a497..50c0955 100644 --- a/src/renderer/component/modals/add-dns.component.tsx +++ b/src/renderer/component/modals/add-dns.component.tsx @@ -35,7 +35,7 @@ export function AddDnsModalComponent(props: Props) { useEffect(() => { if (!props.isOpen) return const defServer = window.storePreload.get('defaultServer') - if (defServer.servers) { + if (defServer && defServer.servers) { setDNSAddressToInput('def-serverInput-1', defServer.servers[0]) setDNSAddressToInput('def-serverInput-2', defServer.servers[1]) }