mirror of https://github.com/Fabio286/antares.git
fix: table filter not working when search string on integer field, #671
This commit is contained in:
parent
894087e196
commit
7e36260cdb
|
@ -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 '!=':
|
||||
|
|
Loading…
Reference in New Issue