diff --git a/utils/utils.go b/utils/utils.go index 01cc8078..52170eb2 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -751,14 +751,10 @@ func ConvertComponentIdIntoFriendlyPathSearch(id string) (string, string) { if intVal <= 99 { if len(cleaned) > 0 { appendSegment(&sb, segs, cleaned, i, false) - } else { - cleaned = append(cleaned, segs[i]) } } else { if len(cleaned) > 0 { appendSegment(&sb, segs, cleaned, i, true) - } else { - cleaned = append(cleaned, segs[i]) } } continue