Add todo for types

This commit is contained in:
Adria Navarro 2024-08-06 09:10:41 +02:00
parent 1e6bb7ebd7
commit b9c1aa05b0
1 changed files with 2 additions and 0 deletions

View File

@ -114,10 +114,12 @@ function typeCoercion(filters: SearchFilters, table: Table) {
}
if (column.type === FieldType.NUMBER) {
if (key === "oneOf") {
// @ts-ignore TODO
searchParam[property] = value
.split(",")
.map(item => parseFloat(item))
} else {
// @ts-ignore TODO
searchParam[property] = parseFloat(value)
}
}