Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Update MapController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugOk committed Dec 24, 2023
1 parent 4df6a2a commit f34a87f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions SS14.MapServer/Controllers/MapController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,7 @@ public async Task<IActionResult> DeleteMap(string id, string gitRef)
[Consumes("application/json")]
public async Task<IActionResult> SyncMaps(string? mapFileNames, bool syncAll)
{
// Split the string into a list of strings. They're seperated by commas.
if (mapFileNames == null)
mapFileNames = "";
var mapList = mapFileNames.Split(',').ToList();
var mapList = mapFileNames?.Split(' ').ToImmutableList() ?? ImmutableList<string>.Empty;

var data = new JobDataMap
{
Expand Down

0 comments on commit f34a87f

Please sign in to comment.