Skip to content

Commit

Permalink
fix: cannot read properties of undefined reading color #3208
Browse files Browse the repository at this point in the history
consider that not all tasks have projects
  • Loading branch information
johannesjo committed Jun 14, 2024
1 parent 70f1f72 commit 72a625a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/features/worklog/worklog.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ <h3 class="week-title mat-h4">
<div
*ngIf="workContextService.isToday"
class="project-color"
[title]="allProjectsColorAndTitle[logEntry.task.projectId].title"
[style.background]="allProjectsColorAndTitle[logEntry.task.projectId].color"
[title]="(allProjectsColorAndTitle[logEntry.task.projectId])?.title"
[style.background]="(allProjectsColorAndTitle[logEntry.task.projectId])?.color"
></div>
<mat-icon
*ngIf="logEntry.task.repeatCfgId"
Expand Down

0 comments on commit 72a625a

Please sign in to comment.