Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37e82646b8 | ||
|
|
e77f34ff9f |
@@ -155,6 +155,7 @@
|
|||||||
.SelectMany(list => list)
|
.SelectMany(list => list)
|
||||||
.Select(eo => eo.Location)
|
.Select(eo => eo.Location)
|
||||||
.Where(loc => !string.IsNullOrWhiteSpace(loc))
|
.Where(loc => !string.IsNullOrWhiteSpace(loc))
|
||||||
|
.Cast<string>() // Cast to non-nullable string after null check
|
||||||
.Distinct()
|
.Distinct()
|
||||||
.OrderBy(loc => loc)
|
.OrderBy(loc => loc)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|||||||
@@ -110,7 +110,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get student first names for this event definition
|
// Get student first names for this event definition
|
||||||
var studentFirstNames = StudentFirstNames(occ.EventDefinition, teamsByEventId);
|
var studentFirstNames = occ.EventDefinition != null
|
||||||
|
? StudentFirstNames(occ.EventDefinition, teamsByEventId)
|
||||||
|
: new List<string>();
|
||||||
|
|
||||||
var calendarItem = new CalendarEventItem(occ, studentFirstNames);
|
var calendarItem = new CalendarEventItem(occ, studentFirstNames);
|
||||||
items.Add(calendarItem);
|
items.Add(calendarItem);
|
||||||
|
|||||||
@@ -49,12 +49,14 @@ else
|
|||||||
@if (_selectedNodeInfo.Careers != null && _selectedNodeInfo.Careers.Any())
|
@if (_selectedNodeInfo.Careers != null && _selectedNodeInfo.Careers.Any())
|
||||||
{
|
{
|
||||||
<MudText Typo="Typo.subtitle2" Class="mb-2">Related Careers:</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mb-2">Related Careers:</MudText>
|
||||||
<MudStack Row="true" Spacing="1" WrapItems="true">
|
<div class="career-mapping">
|
||||||
|
<MudStack Row="true" Spacing="1" Wrap="Wrap.Wrap">
|
||||||
@foreach (var career in _selectedNodeInfo.Careers.OrderBy(c => c))
|
@foreach (var career in _selectedNodeInfo.Careers.OrderBy(c => c))
|
||||||
{
|
{
|
||||||
<MudChip T="string" Size="Size.Small" Variant="Variant.Filled" Color="Color.Default">@career</MudChip>
|
<MudChip T="string" Size="Size.Small" Variant="Variant.Filled" Color="Color.Default">@career</MudChip>
|
||||||
}
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user