abhishek9686 пре 1 година
родитељ
комит
63e4bf7105
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      controllers/hosts.go

+ 1 - 0
controllers/hosts.go

@@ -94,6 +94,7 @@ func getHosts(w http.ResponseWriter, r *http.Request) {
 			for _, node := range filteredNodes {
 				if host, ok := currentHostsMap[node.HostID.String()]; ok {
 					currentHosts = append(currentHosts, host)
+					delete(currentHostsMap, host.ID.String())
 				}
 			}