From efe1395d5b411f528a0962009e13320445d71284 Mon Sep 17 00:00:00 2001 From: Joonas Date: Wed, 15 Jan 2025 15:45:12 +0200 Subject: [PATCH] Fix lint --- app/packs/src/decidim/budgeting_pipeline/projects.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/packs/src/decidim/budgeting_pipeline/projects.js b/app/packs/src/decidim/budgeting_pipeline/projects.js index 6283c69..32f9bbe 100644 --- a/app/packs/src/decidim/budgeting_pipeline/projects.js +++ b/app/packs/src/decidim/budgeting_pipeline/projects.js @@ -22,6 +22,8 @@ if (!ordersSummary.classList.contains("is-stuck")) { placeHolder.style.height = `${ordersSummary.offsetHeight}px`; ordersSummary.classList.add("is-stuck"); + } else { + return; } } else { if (ordersSummary.classList.contains("is-stuck")) { @@ -74,12 +76,10 @@ document.querySelectorAll("[data-project-selector] input[type='checkbox']").forEach((el) => { el.addEventListener("change", () => { - let requestType; + let requestType = "DELETE"; if (el.checked) { requestType = "POST"; - } else { - requestType = "DELETE"; } loadingProjects.push(el.value); @@ -120,9 +120,9 @@ clickableArea.addEventListener("click", clickHandler); - // eslint-disable-next-line no-undef button.addEventListener("keydown", (ev) => { if (ev.code === "Enter" || ev.code === "Space") { + // eslint-disable-next-line no-undef buttonClickHandler(ev); } });