From 909108ec30efb9c068892f755a64e823b4f4a284 Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Fri, 13 Mar 2026 00:11:41 +0200 Subject: [PATCH] =?UTF-8?q?Korjaa=20duplikaatti=20const=20showClosed=20-m?= =?UTF-8?q?=C3=A4=C3=A4rittely=20renderTickets-funktiossa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aiheutti SyntaxError: Identifier 'showClosed' has already been declared, joka kaatoi koko sivun (vain footer näkyi). Co-Authored-By: Claude Opus 4.6 --- script.js | 1 - 1 file changed, 1 deletion(-) diff --git a/script.js b/script.js index 9915b57..d3663ca 100644 --- a/script.js +++ b/script.js @@ -1486,7 +1486,6 @@ function renderTickets() { }); } - const showClosed = document.getElementById('ticket-show-closed').checked; const openCount = tickets.filter(t => t.status !== 'suljettu').length; const closedCount = tickets.filter(t => t.status === 'suljettu').length; let countText = `${openCount} avointa tikettiä`;