Skip to content

Commit 95770f2

Browse files
committed
Correctly marked Topic property as non-nullable
This was left over from a previous attempt to handle a CS8618 warning. While a `default!` value was assigned, and the `[NotNull, DisallowNull]` attributes were removed, the type continued to be marked as non-nullable. This is fixed.
1 parent 64afeb9 commit 95770f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Editor.AspNetCore/Models/EditorViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public record EditorViewModel {
2222
/// The <see cref="EditingTopicViewModel"/> representing the core properties of the currently selected <see
2323
/// cref="Topic"/>.
2424
/// </summary>
25-
public EditingTopicViewModel? Topic { get; init; } = default!;
25+
public EditingTopicViewModel Topic { get; init; } = default!;
2626

2727
/*==========================================================================================================================
2828
| CONTENT TYPE DESCRIPTOR

0 commit comments

Comments
 (0)