From d5de3a6fefbc57bccfb1fe688f9c190ccf87d58d Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 25 Aug 2026 13:25:35 +0200 Subject: analytics grouping --- web/frontend/data-quality.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'web/frontend/data-quality.ts') diff --git a/web/frontend/data-quality.ts b/web/frontend/data-quality.ts index 32c3563..20112c0 100644 --- a/web/frontend/data-quality.ts +++ b/web/frontend/data-quality.ts @@ -3,6 +3,7 @@ function initDataQuality(): void { const selectAll = document.getElementById("data-quality-select-all") as HTMLInputElement | null; const counter = document.getElementById("data-quality-selected"); if (!form || !selectAll) return; + const selectAllInput: HTMLInputElement = selectAll; const checkboxes = Array.from(form.querySelectorAll("input.data-quality-checkbox")); function updateCount(): void { @@ -10,12 +11,12 @@ function initDataQuality(): void { if (counter) counter.textContent = `${selected} selected`; const allChecked = selected === checkboxes.length && checkboxes.length > 0; const noneChecked = selected === 0; - selectAll!.checked = allChecked; - selectAll!.indeterminate = !allChecked && !noneChecked; + selectAllInput.checked = allChecked; + selectAllInput.indeterminate = !allChecked && !noneChecked; } - selectAll!.addEventListener("change", () => { - for (const cb of checkboxes) cb.checked = selectAll!.checked; + selectAllInput.addEventListener("change", () => { + for (const cb of checkboxes) cb.checked = selectAllInput.checked; updateCount(); }); -- cgit v1.3