This commit is contained in:
Chneemann 2024-03-25 11:16:20 +01:00
parent 4e9a5f3dd0
commit 37953c0db9
2 changed files with 6 additions and 2 deletions

View file

@ -222,6 +222,7 @@ section {
display: flex;
width: calc(100vw - 85px);
overflow-x: auto;
padding: 0 5px;
}
app-task {

View file

@ -45,8 +45,11 @@ export class BoardComponent {
const index = this.taskService.allTasks.findIndex((task) => task.id === id);
if (index !== -1) {
this.taskService.allTasks[index].status = status;
if (this.taskService.filteredTasks.length > 0) {
this.taskService.filteredTasks[index].status = status;
const filteredIndex = this.taskService.filteredTasks.findIndex(
(task) => task.id === id
);
if (filteredIndex !== -1) {
this.taskService.filteredTasks[filteredIndex].status = status;
}
this.taskService.updateTask(id, index);
}