This commit is contained in:
Chneemann 2024-03-25 13:09:17 +01:00
parent 37953c0db9
commit 78721be559

View file

@ -43,11 +43,11 @@ export class BoardComponent {
handleItemDropped(id: string, status: string): void {
const index = this.taskService.allTasks.findIndex((task) => task.id === id);
if (index !== -1) {
this.taskService.allTasks[index].status = status;
const filteredIndex = this.taskService.filteredTasks.findIndex(
(task) => task.id === id
);
if (index !== -1) {
this.taskService.allTasks[index].status = status;
if (filteredIndex !== -1) {
this.taskService.filteredTasks[filteredIndex].status = status;
}