Skip to content

Commit

Permalink
Merge pull request #947 from DFE-Digital/bug/245585-retrieve-section-…
Browse files Browse the repository at this point in the history
…statuses

fix (245585): Allow nulls returned from GetSectionStatuses
  • Loading branch information
katie-gardner authored Jan 17, 2025
2 parents 6fd00ac + bff6942 commit 06aa523
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 06aa523

Please sign in to comment.