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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user