Skip to content

Commit 92b6638

Browse files
committed
TD-5220 Fixes order comparison by adding Distinct() to linq
1 parent e00e493 commit 92b6638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Web/Services/ImportCompetenciesFromFileService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public ImportCompetenciesResult PreProcessCompetenciesTable(IXLWorkbook workbook
4141
.Select(row => row.Name)
4242
.Distinct()
4343
.ToList();
44-
var newGroups = competencyRows.Select(row => row.CompetencyGroup ?? "").ToList();
44+
var newGroups = competencyRows.Select(row => row.CompetencyGroup ?? "").Distinct().ToList();
4545
foreach (var competencyRow in competencyRows)
4646
{
4747
PreProcessCompetencyRow(competencyRow, newCompetencyIds, existingIds, existingGroups, newGroups);

0 commit comments

Comments
 (0)