On add of new script, clear out ID just in case

This commit is contained in:
Pat Hartl 2023-01-15 14:28:59 -06:00
parent 745665f091
commit 37895d3f86

View file

@ -44,6 +44,8 @@ namespace LANCommander.Controllers
[HttpPost]
public async Task<IActionResult> Add(Script script)
{
script.Id = Guid.Empty;
if (ModelState.IsValid)
{
script = await ScriptService.Add(script);