diff --git a/LANCommander/Pages/Servers/Edit.razor b/LANCommander/Pages/Servers/Edit.razor index 8cc6c43..3689e24 100644 --- a/LANCommander/Pages/Servers/Edit.razor +++ b/LANCommander/Pages/Servers/Edit.razor @@ -148,7 +148,7 @@ IEnumerable Games = new List(); - string RootPath; + string RootPath = Path.GetPathRoot(Directory.GetCurrentDirectory()); Server Server; Guid GameId; @@ -160,8 +160,6 @@ else Server = await ServerService.Get(Id); - RootPath = Path.GetPathRoot(Directory.GetCurrentDirectory()); - if (Server.GameId.HasValue) GameId = Server.GameId.Value;