bugfix
This commit is contained in:
parent
37953c0db9
commit
78721be559
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue