bugfixes
This commit is contained in:
parent
4e9a5f3dd0
commit
37953c0db9
2 changed files with 6 additions and 2 deletions
|
|
@ -222,6 +222,7 @@ section {
|
|||
display: flex;
|
||||
width: calc(100vw - 85px);
|
||||
overflow-x: auto;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
app-task {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue