From 5556a75f91863f1ca595344603d3b3f1e00fb48a Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Wed, 8 Jun 2022 18:57:35 -0400 Subject: [PATCH] Requested adjustments --- scripts/system/more/more.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/system/more/more.html b/scripts/system/more/more.html index 17ec1e7401..f483d24b3f 100644 --- a/scripts/system/more/more.html +++ b/scripts/system/more/more.html @@ -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; }); }