mirror of
https://github.com/tale/headplane.git
synced 2026-08-20 18:02:17 +00:00
fix(ui): stop split DNS from crashing the page when undefined
Closes HP-548.
This commit is contained in:
@@ -193,7 +193,7 @@ function getDNSConfig(config: HeadscaleConfigState): DNSConfigView {
|
||||
magicDns: dns.magic_dns,
|
||||
baseDomain: dns.base_domain,
|
||||
nameservers: dns.nameservers.global,
|
||||
splitDns: dns.nameservers.split,
|
||||
splitDns: dns.nameservers.split ?? {},
|
||||
searchDomains: dns.search_domains,
|
||||
overrideDns: dns.override_local_dns,
|
||||
extraRecords: dnsRecords(config),
|
||||
|
||||
Reference in New Issue
Block a user