Skip to content

Commit

Permalink
fix (245585): Allow nulls returned from GetSectionStatuses
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew MORGAN authored and Drew MORGAN committed Jan 17, 2025
1 parent 6fd00ac commit bff6942
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ public class CategorySectionRecommendationDto

public string? SectionSlug { get; init; }

public bool Viewed { get; init; }
public bool? Viewed { get; init; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ public class SectionStatusDto

public DateTime DateUpdated { get; set; }

public bool Viewed { get; set; }
public bool? Viewed { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
else if (Model.RecommendationSlug != null)
{
if (!Model.Viewed)
if (Model.Viewed == false)
{
<task-list-tag colour="@TagColour.Yellow">New</task-list-tag>
}
Expand Down

0 comments on commit bff6942

Please sign in to comment.