From 37895d3f86b01baf8252c07687cc80dd4d237036 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sun, 15 Jan 2023 14:28:59 -0600 Subject: [PATCH] On add of new script, clear out ID just in case --- LANCommander/Controllers/ScriptsController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LANCommander/Controllers/ScriptsController.cs b/LANCommander/Controllers/ScriptsController.cs index 704acc0..7211ba2 100644 --- a/LANCommander/Controllers/ScriptsController.cs +++ b/LANCommander/Controllers/ScriptsController.cs @@ -44,6 +44,8 @@ namespace LANCommander.Controllers [HttpPost] public async Task Add(Script script) { + script.Id = Guid.Empty; + if (ModelState.IsValid) { script = await ScriptService.Add(script);