mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-01-26 01:21:04 +00:00
Init domains array for custom nameserver group (#304)
This commit is contained in:
@@ -126,6 +126,7 @@ const NameServerGroupAdd = () => {
|
||||
};
|
||||
|
||||
const onChange = (changedValues: any) => {
|
||||
|
||||
if (changedValues.primary !== undefined) {
|
||||
setIsPrimary(changedValues.primary);
|
||||
}
|
||||
@@ -207,6 +208,7 @@ const NameServerGroupAdd = () => {
|
||||
let nsGroupLocal = {} as NameServerGroup;
|
||||
if (value === customChoice) {
|
||||
nsGroupLocal = nsGroup;
|
||||
nsGroupLocal.domains = [];
|
||||
} else {
|
||||
defaultDNSOptions.forEach((nsg) => {
|
||||
if (value === nsg.name) {
|
||||
|
||||
@@ -96,7 +96,7 @@ export const transformGroupedDataTable = (
|
||||
}
|
||||
});
|
||||
groupList = groupList.filter(
|
||||
(value, index, arrary) => arrary.indexOf(value) === index
|
||||
(value, index, array) => array.indexOf(value) === index
|
||||
);
|
||||
let groupDataTableRoutes = transformDataTable(listedRoutes, peers);
|
||||
const filterEnabledRoutes = groupDataTableRoutes.filter(
|
||||
|
||||
Reference in New Issue
Block a user