Skip to content

Commit

Permalink
fix fucky wuckky aws
Browse files Browse the repository at this point in the history
  • Loading branch information
benaclejames committed Jun 13, 2023
1 parent b68c0eb commit 292a4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions VRCFaceTracking.Core/Services/ModuleDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ private static IEnumerable<InstallableTrackingModule> AllModules()
// and get the list of modules.
var client = new HttpClient();
var response = client.GetAsync("https://rjlk4u22t36tvqz3bvbkwv675a0wbous.lambda-url.us-east-1.on.aws/modules").Result;
if (!response.IsSuccessStatusCode)
return new List<InstallableTrackingModule>();
var content = response.Content.ReadAsStringAsync().Result;
return JsonConvert.DeserializeObject<List<InstallableTrackingModule>>(content);
}
Expand Down
2 changes: 1 addition & 1 deletion VRCFaceTracking/ViewModels/ModuleRegistryViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void OnNavigatedFrom()

public void EnsureItemSelected()
{
if (Selected == null)
if (Selected == null && ModuleInfos.Any())
{
Selected = ModuleInfos.First();
}
Expand Down

0 comments on commit 292a4a5

Please sign in to comment.