imjoey commented on a change in pull request #1207:
URL: https://github.com/apache/apisix-dashboard/pull/1207#discussion_r551805523
##########
File path: api/internal/handler/route/route.go
##########
@@ -218,7 +220,11 @@ func (h *Handler) List(c droplet.Context) (interface{},
error) {
if input.Label != "" &&
!utils.LabelContains(obj.(*entity.Route).Labels, labelMap) {
return false
}
-
+
+ status, _ := strconv.Atoi(input.Status)
+ if input.Status != "" &&
uint8(obj.(*entity.Route).Status) != uint8(status) {
Review comment:
@Jaycean you can try to `fmt.Sprintf("%d", obj.(*entity.Route).Status)`
to compare in string type.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]