Skip to content

Commit

Permalink
fix: use correct task object in task pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar-ish committed Oct 21, 2022
1 parent d3d1bf8 commit a5fceb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export class StaffTaskListComponent implements OnInit, OnChanges {
}
}

togglePin(task) {
task.pinned ? task.unpinTask(task) : task.pinTask(task);
togglePin() {
this.taskData.selectedTask.pinned ? this.taskData.selectedTask.unpin() : this.taskData.selectedTask.pin();
}
}

0 comments on commit a5fceb0

Please sign in to comment.