fix(striker-ui): add default DNS CSV

main
Tsu-ba-me 2 years ago
parent 89c7f6b980
commit 85dde72db7
  1. 4
      striker-ui/components/ManageManifest/AnvilNetworkConfigInputGroup.tsx

@ -23,6 +23,8 @@ const INPUT_LABEL_ANVIL_NETWORK_CONFIG_DNS = 'DNS';
const INPUT_LABEL_ANVIL_NETWORK_CONFIG_MTU = 'MTU';
const INPUT_LABEL_ANVIL_NETWORK_CONFIG_NTP = 'NTP';
const DEFAULT_DNS_CSV = '8.8.8.8, 8.8.4.4';
const NETWORK_TYPE_ENTRIES = Object.entries(NETWORK_TYPES);
const assertIfn = (type: string) => type === 'ifn';
@ -39,7 +41,7 @@ const AnvilNetworkConfigInputGroup = <
formUtils,
networkListEntries,
previous: {
dnsCsv: previousDnsCsv,
dnsCsv: previousDnsCsv = DEFAULT_DNS_CSV,
mtu: previousMtu,
ntpCsv: previousNtpCsv,
} = {},

Loading…
Cancel
Save