Korjaa duplikaatti const showClosed -määrittely renderTickets-funktiossa

Aiheutti SyntaxError: Identifier 'showClosed' has already been declared,
joka kaatoi koko sivun (vain footer näkyi).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 00:11:41 +02:00
parent 053ad2f28e
commit 909108ec30

View File

@@ -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ä`;