diff --git a/src/web/waiters/RecipeWaiter.mjs b/src/web/waiters/RecipeWaiter.mjs index 696e37ce..50043ab2 100755 --- a/src/web/waiters/RecipeWaiter.mjs +++ b/src/web/waiters/RecipeWaiter.mjs @@ -611,7 +611,12 @@ class RecipeWaiter { * @param {string} opDataName the data-name of the target operation */ addSelectedClass(opDataName) { - document.querySelector(`.operation[data-name="${opDataName}"]`).classList.add("selected"); + const ops = document.querySelectorAll(`.operation[data-name="${opDataName}"]`); + + // A selected operation can occur twice if it's in favourites and the original category op-list + ops.forEach((op => { + op.classList.add("selected"); + })) } /**