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:
@@ -1486,7 +1486,6 @@ function renderTickets() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const showClosed = document.getElementById('ticket-show-closed').checked;
|
|
||||||
const openCount = tickets.filter(t => t.status !== 'suljettu').length;
|
const openCount = tickets.filter(t => t.status !== 'suljettu').length;
|
||||||
const closedCount = tickets.filter(t => t.status === 'suljettu').length;
|
const closedCount = tickets.filter(t => t.status === 'suljettu').length;
|
||||||
let countText = `${openCount} avointa tikettiä`;
|
let countText = `${openCount} avointa tikettiä`;
|
||||||
|
|||||||
Reference in New Issue
Block a user