From 2c9b8ff11b2c59ff1679a0c172040d4586e4d3df Mon Sep 17 00:00:00 2001 From: Masterjun Date: Sat, 24 Aug 2024 23:54:40 +0200 Subject: [PATCH] refactor emulator field to be nullable but still required (#1962) --- TASVideos/Pages/Publications/Catalog.cshtml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TASVideos/Pages/Publications/Catalog.cshtml.cs b/TASVideos/Pages/Publications/Catalog.cshtml.cs index 6c6bbce39..f82788d73 100644 --- a/TASVideos/Pages/Publications/Catalog.cshtml.cs +++ b/TASVideos/Pages/Publications/Catalog.cshtml.cs @@ -233,6 +233,7 @@ public class PublicationCatalog public int SystemFramerate { get; init; } [StringLength(50)] - public string Emulator { get; init; } = ""; + [Required] + public string? Emulator { get; init; } } }