fix(dashboard): proper check int size (#113766)

This commit is contained in:
Jean-Philippe Quéméner
2025-11-12 15:35:38 +00:00
committed by GitHub
parent d1d8aa7c14
commit a8dda428ce
@@ -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))
}
}