Skip to content

Commit

Permalink
Fix: Get nothing when the filter is empty (#5555)
Browse files Browse the repository at this point in the history
Fix: Unable list object without filters

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>
  • Loading branch information
zhou1203 committed Feb 27, 2023
1 parent dbdf006 commit a8ac54f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/models/resources/v1beta1/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8ac54f

Please sign in to comment.