Skip to content

Commit

Permalink
fix: ensure staff task list checks unit exists
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed May 23, 2024
1 parent 9171d0c commit dbb312d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export class StaffTaskListComponent implements OnInit, OnChanges {

ngOnChanges(changes: SimpleChanges): void {
if (
((!changes.unit?.isFirstChange &&
((changes.unit &&
!changes.unit?.isFirstChange &&
changes.unit.currentValue.id &&
changes.unit.previousValue.id !== changes.unit.currentValue.id) ||
this.tasks == null) &&
Expand Down

0 comments on commit dbb312d

Please sign in to comment.