fix(tasks): selection contains spaces

This commit is contained in:
Elian Doran 2025-02-23 22:00:50 +02:00
parent 0ba4c9b9c7
commit b91b243432
No known key found for this signature in database

View File

@ -61,10 +61,7 @@ function buildTasks(tasks: FTask[]) {
let html = ''; let html = '';
for (const task of tasks) { for (const task of tasks) {
html += `\ html += `<li class="task"><input type="checkbox" class="check" data-task-id="${task.taskId}" ${task.isDone ? "checked" : ""} />${task.title}</li>`;
<li class="task">
<input type="checkbox" class="check" data-task-id="${task.taskId}" ${task.isDone ? "checked" : ""} /> ${task.title}
</li>`;
} }
return html; return html;