Skip to content

Commit

Permalink
Really fix Dashboard crash when widgets runtime isn't present (#3828)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau authored Sep 10, 2024
1 parent 2a79c50 commit 619a3fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ private Package GetWebExperiencePackPackage()
WidgetHelpers.WebExperiencePackageFamilyName,
(minSupportedVersion400, version500),
(minSupportedVersion500, null));
return packages.First();
return packages.FirstOrDefault();
}

private Package GetWidgetsPlatformRuntimePackage()
{
var minSupportedVersion = new Version(1, 0, 0, 0);

var packages = _packageDeploymentService.FindPackagesForCurrentUser(WidgetHelpers.WidgetsPlatformRuntimePackageFamilyName, (minSupportedVersion, null));
return packages.First();
return packages.FirstOrDefault();
}

private WidgetServiceStates ValidatePackage(Package package)
Expand Down

0 comments on commit 619a3fb

Please sign in to comment.