Fix: Get nothing when the filter is empty (#5555)

Fix: Unable list object without filters

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>
This commit is contained in:
Wenhao Zhou
2023-02-27 15:28:35 +08:00
committed by GitHub
parent dbdf006fb5
commit a8ac54f489

View File

@@ -58,6 +58,8 @@ func DefaultList(objects []runtime.Object, q *query.Query, compareFunc CompareFu
filtered = append(filtered, object)
}
}
} else {
filtered = objects
}
// sort by sortBy field