Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: "is null" filter was not working in eager loaded grids #2138

Merged
merged 1 commit into from Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend-html/src/model/entities/FilterConfiguration.ts
Expand Up @@ -248,7 +248,7 @@ export class FilterConfiguration implements IFilterConfiguration {
}
case "Number": {
if (cellValue === undefined) return true;
const t1 = prop.column === "Number" ? parseFloat(cellValue) : cellValue;
const t1 = parseFloat(cellValue);

switch (term.setting.type) {
case "between": {
Expand Down Expand Up @@ -303,9 +303,9 @@ export class FilterConfiguration implements IFilterConfiguration {
if (term.setting.val1 === "" || term.setting.val1 === undefined) return true;
return t1 !== parseFloat(term.setting.val1);
case "nnull":
return t1 !== null;
return cellValue !== null;
case "null":
return t1 === null;
return cellValue === null;
}
break;
}
Expand Down