commit | fe08d2ddaef25b7c763ca6961b32fd0eaac52e1f | [log] [tgz] |
---|---|---|
author | dtheinert <dietmar.theinert@pta.de> | Mon Oct 12 07:48:13 2020 +0200 |
committer | dtheinert <dietmar.theinert@pta.de> | Mon Oct 12 07:48:13 2020 +0200 |
tree | 0aade951920c781fec313ed45196b308ea2bf809 | |
parent | 9dec2de97d83b6e74f89162e6628e673ec0d6c5a [diff] |
[SI-2944] - correct filter handling so empty cell values will also be found Signed-off-by: dtheinert <dietmar.theinert@pta.de>
diff --git a/projects/grid-failure-information-app/src/app/shared/filters/ag-grid/fuzzy-set-filter/fuzzy-set-filter.component.ts b/projects/grid-failure-information-app/src/app/shared/filters/ag-grid/fuzzy-set-filter/fuzzy-set-filter.component.ts index 325a7bc..219e2aa 100644 --- a/projects/grid-failure-information-app/src/app/shared/filters/ag-grid/fuzzy-set-filter/fuzzy-set-filter.component.ts +++ b/projects/grid-failure-information-app/src/app/shared/filters/ag-grid/fuzzy-set-filter/fuzzy-set-filter.component.ts
@@ -34,7 +34,7 @@ } else { // is numeric or null if (!nodeValue) { - passed = nodeValue === null && itemKey === 'null'; + passed = (nodeValue === null || nodeValue === '') && itemKey === 'null'; } else { passed = nodeValue.toString() === itemKey; }