Unverified Commit ec1414d3 authored by tiancan's avatar tiancan Committed by GitHub
Browse files

If sorting is not required, return directly in the sorting method (#180)

* If sorting is not required, return directly in the sorting method

* update changelog

* fix changelog
parent 1dc43225
Showing with 23 additions and 0 deletions
+23 -0
# v1.5.1
## Bugfix
- if sorting is not required, return directly in the sorting method [#180](https://github.com/kubecube-io/KubeCube/pull/180)
## Dependencies
- hnc v1.0
- nginx-ingress v0.46.0
- helm 3.5
- metrics-server v0.4.1
- elasticsearch 7.8
- kubecube-monitoring 15.4.8
- thanos 3.18.0
- logseer v1.0.0
- logagent v1.0.0
- kubecube-audit v1.2.0
- kubecube-webconsole v1.2.4
# v1.5.0
## Feature
......
......@@ -331,6 +331,9 @@ func (f *Filter) fuzzyMatch(items K8sJsonArr) (result K8sJsonArr) {
// sort by .metadata.name/.metadata.creationTimestamp
func (f *Filter) sort(items K8sJsonArr) K8sJsonArr {
if len(f.SortName) == 0 {
return items
}
if len(items) == 0 {
return items
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment