added nodes without any dependencies in serviceMap

This commit is contained in:
Ankit Nayan 2021-05-11 13:15:10 +05:30
parent be7d8c3347
commit 2999adc98f

View File

@ -647,7 +647,7 @@ func GetServiceMapDependencies(client *SqlClient, query *model.GetServicesParams
retMe := make([]ServiceMapDependencyResponseItem, 0, len(serviceMap))
for _, dependency := range serviceMap {
if dependency.Parent == dependency.Child || dependency.Parent == "" {
if dependency.Parent == "" {
continue
}
retMe = append(retMe, *dependency)