Skip to content

Commit 44f66bf

Browse files
committed
Removed fallback to NavigationTopicViewModel.Key in Menu view
In practice, this wouldn't have been necessary anyway, as the `Topic.Title` which `NavigationTopicViewModel.Title` inherits from already falls back to `Key`, and thus we'd never expect a `null` title.
1 parent 4f535a5 commit 44f66bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • OnTopic.AspNetCore.Mvc.Host/Views/Shared/Components/Menu

OnTopic.AspNetCore.Mvc.Host/Views/Shared/Components/Menu/Default.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
IHtmlContent WriteMenu(NavigationTopicViewModel topic, int indentLevel = 1) => Body(
1818

1919
@<li>
20-
<a href="@topic.WebPath">@(topic.ShortTitle?? topic.Title?? topic.Key)</a>
20+
<a href="@topic.WebPath">@(topic.ShortTitle?? topic.Title)</a>
2121
<ul>
2222
@foreach (var childTopic in topic.Children) {
2323
@WriteMenu(childTopic, indentLevel+1);

0 commit comments

Comments
 (0)