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 {
|
handleItemDropped(id: string, status: string): void {
|
||||||
const index = this.taskService.allTasks.findIndex((task) => task.id === id);
|
const index = this.taskService.allTasks.findIndex((task) => task.id === id);
|
||||||
|
const filteredIndex = this.taskService.filteredTasks.findIndex(
|
||||||
|
(task) => task.id === id
|
||||||
|
);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
this.taskService.allTasks[index].status = status;
|
this.taskService.allTasks[index].status = status;
|
||||||
const filteredIndex = this.taskService.filteredTasks.findIndex(
|
|
||||||
(task) => task.id === id
|
|
||||||
);
|
|
||||||
if (filteredIndex !== -1) {
|
if (filteredIndex !== -1) {
|
||||||
this.taskService.filteredTasks[filteredIndex].status = status;
|
this.taskService.filteredTasks[filteredIndex].status = status;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue