Init domains array for custom nameserver group (#304)

This commit is contained in:
Maycon Santos
2023-12-08 11:07:10 +01:00
committed by GitHub
parent 193f8a7bdf
commit c3ba026452
2 changed files with 3 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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(