diff --git a/internal/web/actions/default/clusters/cluster/node/node.go b/internal/web/actions/default/clusters/cluster/node/node.go index d0dbb198..2d7edee0 100644 --- a/internal/web/actions/default/clusters/cluster/node/node.go +++ b/internal/web/actions/default/clusters/cluster/node/node.go @@ -89,6 +89,12 @@ func (this *NodeAction) RunGet(params struct { }) } } + if len(dnsRouteMaps) == 0 { + dnsRouteMaps = append(dnsRouteMaps, maps.Map{ + "name": "", + "code": "", + }) + } this.Data["dnsRoutes"] = dnsRouteMaps this.Data["dnsRecordName"] = recordName this.Data["dnsRecordValue"] = recordValue diff --git a/web/views/@default/clusters/cluster/node/node.html b/web/views/@default/clusters/cluster/node/node.html index 409b7a8d..36cd3af1 100644 --- a/web/views/@default/clusters/cluster/node/node.html +++ b/web/views/@default/clusters/cluster/node/node.html @@ -29,7 +29,7 @@ -