From 9a7ec254933a066345d71108707ab1233d6b9ea1 Mon Sep 17 00:00:00 2001 From: Robin Scholtes Date: Fri, 12 May 2023 18:01:31 +1200 Subject: [PATCH] rename recipeList var to recipeListItems ( since we are selecting list items ), and ingredient to item --- src/web/waiters/RecipeWaiter.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/waiters/RecipeWaiter.mjs b/src/web/waiters/RecipeWaiter.mjs index f25e3ab9..696e37ce 100755 --- a/src/web/waiters/RecipeWaiter.mjs +++ b/src/web/waiters/RecipeWaiter.mjs @@ -627,13 +627,13 @@ class RecipeWaiter { * overhaul for another time / issue. */ updateSelectedOperations() { - const recipeList = document.querySelectorAll("#rec-list > li"); + const recipeListItems = document.querySelectorAll("#rec-list > li"); const operations = document.querySelectorAll(".operation"); this.clearAllSelectedClasses(); - recipeList.forEach((ingredient) => { - const ingredientName = ingredient.getAttribute("data-name"); + recipeListItems.forEach((item) => { + const ingredientName = item.getAttribute("data-name"); operations.forEach((operation) => { if (ingredientName === operation.getAttribute("data-name")) {