Requested adjustments

This commit is contained in:
Alezia Kurdis 2022-06-08 18:57:35 -04:00 committed by GitHub
parent a67f7b4ded
commit 5556a75f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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