Merge pull request #2772 from shubhamkumar9199/fix/view-history-scheduler
WEB-(410)-fix: correct type comparison in view-history-scheduler-job filter logic
This commit is contained in:
+3
-3
@@ -113,9 +113,9 @@ export class ViewHistorySchedulerJobComponent implements OnInit {
|
||||
const filters = JSON.parse(filtersJson);
|
||||
filters.forEach((filter: any) => {
|
||||
const val = data[filter.id] === null ? '' : data[filter.id];
|
||||
if (filter.value !== '') {
|
||||
matchFilter.push(val === parseInt(filter.value, 10));
|
||||
} else if (filter.value === '') {
|
||||
if (filter.value !== '' && val !== '') {
|
||||
matchFilter.push(parseInt(val.toString(), 10) === parseInt(filter.value, 10));
|
||||
} else if (filter.value === '' || val === '') {
|
||||
matchFilter.push(val.toString().toLowerCase().includes(filter.value.toLowerCase()));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user