1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

Add todo for types

This commit is contained in:
Adria Navarro 2024-08-06 09:10:41 +02:00
parent 1e6bb7ebd7
commit b9c1aa05b0

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)
}
}