Add the support of Empty and Non-Empty filter (#5773)
This commit is contained in:
committed by
GitHub
parent
9e08445bff
commit
9228667a57
@ -199,14 +199,20 @@ export class QueryRunnerArgsFactory {
|
||||
if (!fieldMetadata) {
|
||||
return value;
|
||||
}
|
||||
|
||||
switch (fieldMetadata.type) {
|
||||
case 'NUMBER':
|
||||
return Object.fromEntries(
|
||||
Object.entries(value).map(([filterKey, filterValue]) => [
|
||||
filterKey,
|
||||
Number(filterValue),
|
||||
]),
|
||||
);
|
||||
case 'NUMBER': {
|
||||
if (value?.is === 'NULL') {
|
||||
return value;
|
||||
} else {
|
||||
return Object.fromEntries(
|
||||
Object.entries(value).map(([filterKey, filterValue]) => [
|
||||
filterKey,
|
||||
Number(filterValue),
|
||||
]),
|
||||
);
|
||||
}
|
||||
}
|
||||
default:
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user