fix(dashboard): proper check int size (#113766)
This commit is contained in:
@@ -1727,7 +1727,7 @@ func buildAnnotationFilter(filterMap map[string]interface{}) *dashv2alpha1.Dashb
|
||||
uintIds = append(uintIds, uint32(v))
|
||||
}
|
||||
case int:
|
||||
if v >= 0 && v <= math.MaxUint32 {
|
||||
if v >= 0 && uint64(v) <= math.MaxUint32 {
|
||||
uintIds = append(uintIds, uint32(v))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user