Skip to content

Commit 2b27ac2

Browse files
committed
Merge branch 'hotfix/TrackingEventViewModel-typing' into master
Fixes a bug inadvertently introduced when converting `List<T>` to `Collection<T>` (f8f5ed3); one instance of this was missed in the (pre-release) GoldSim courseware site. Whoops!
2 parents a479ca4 + ac4230b commit 2b27ac2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Views/Shared/_TrackEvents.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@model List<TrackingEventViewModel>
1+
@model Collection<TrackingEventViewModel>
22

33
<script>
44
@foreach (var trackingEvent in Model) {
@@ -14,6 +14,6 @@
1414
</script>
1515

1616
<!--
17-
Content Type: List<TrackingEventViewModel>
17+
Content Type: Collection<TrackingEventViewModel>
1818
View Location: ~/Views/Shared/_TrackEvents.cshtml
1919
-->

_ViewImports.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@using Microsoft.AspNetCore.Html
1212
@using Microsoft.AspNetCore.Mvc.Razor
1313
@using System.Web
14+
@using System.Collections.ObjectModel
1415

1516
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
1617
@addTagHelper *, GoldSim.Web

0 commit comments

Comments
 (0)