Requested adjustments

This commit is contained in:
Zeja Pyle 2022-06-08 18:58:53 -04:00 committed by GitHub
parent fded4c8f0d
commit a71fc9aec4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,16 +74,16 @@
if (seachedFieldsFilter.indexOf(targeted) === -1) { if (seachedFieldsFilter.indexOf(targeted) === -1) {
seachedFieldsFilter.push(targeted); seachedFieldsFilter.push(targeted);
} else { } else {
seachedFieldsFilter = arrayRemove(seachedFieldsFilter, targeted); seachedFieldsFilter = removeElementFromArray(seachedFieldsFilter, targeted);
} }
loadRecordsUpTo = NUMBER_OF_RECORDS_PER_LOAD; loadRecordsUpTo = NUMBER_OF_RECORDS_PER_LOAD;
displaySearchFieldsFilter(); displaySearchFieldsFilter();
doSearch(); doSearch();
} }
function arrayRemove(arr, value) { function removeElementFromArray(arr, value) {
return arr.filter(function(ele){ return arr.filter(function(ele){
return ele != value; return ele !== value;
}); });
} }