Skip to content

Commit

Permalink
Userfiles/Edit - allow user to unset the game, resolves #1934
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Aug 11, 2024
1 parent 433f9cc commit 778bec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TASVideos/Pages/UserFiles/Edit.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private async Task Initialize()
.WithDefaultEntry();

AvailableGames = UserFile.System.HasValue
? await db.Games.ToDropDownList(UserFile.System.Value)
? (await db.Games.ToDropDownList(UserFile.System.Value)).WithDefaultEntry()
: [.. UiDefaults.DefaultEntry];
}

Expand Down

0 comments on commit 778bec8

Please sign in to comment.