fix: table filter not working when search string on integer field, #671

This commit is contained in:
Fabio Di Stasio 2023-09-19 18:10:27 +02:00
parent 894087e196
commit 7e36260cdb
1 changed files with 7 additions and 0 deletions

View File

@ -122,6 +122,13 @@ const createClausole = (filter: TableFilterClausole) => {
const { elementsWrapper: ew, stringsWrapper: sw } = clientCustomizations.value;
let value;
if (isNumeric) {
if (isNaN(Number(filter.value)))
filter.value = '';
if (isNaN(Number(filter.value2)))
filter.value2 = '';
}
switch (filter.op) {
case '=':
case '!=':