From 120c5dd0601a35582982f251902c29cc2b194dc7 Mon Sep 17 00:00:00 2001 From: Auldrin Possa Date: Thu, 17 Apr 2025 17:11:56 +0100 Subject: [PATCH] TD-5451- Empty competency description check added --- .../LearningPortal/SelfAssessments/_OverviewTable.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/_OverviewTable.cshtml b/DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/_OverviewTable.cshtml index 7c51b25169..be40c4aa32 100644 --- a/DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/_OverviewTable.cshtml +++ b/DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/_OverviewTable.cshtml @@ -49,7 +49,7 @@ model="competency.CompetencyFlags" />
- @if (competency.Description != null && !competency.AlwaysShowDescription) + @if (!string.IsNullOrWhiteSpace(competency.Description) && !competency.AlwaysShowDescription) {
@@ -64,10 +64,10 @@ } else { -

+

@competency.Name

- @if (competency.Description != null) + @if (!string.IsNullOrWhiteSpace(competency.Description)) {

@(Html.Raw(competency.Description))