Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 42a2a80

Browse files
Fixing DetailsUrl
1 parent d938211 commit 42a2a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/ViewModels/GitHubPane/PullRequestCheckViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static IEnumerable<IPullRequestCheckViewModel> Build(IViewViewModelFactor
4848
pullRequestCheckViewModel.Title = model.Context;
4949
pullRequestCheckViewModel.Description = model.Description;
5050
pullRequestCheckViewModel.Status = checkStatus;
51-
pullRequestCheckViewModel.DetailsUrl = model.TargetUrl != null ? new Uri(model.TargetUrl) : null;
51+
pullRequestCheckViewModel.DetailsUrl = !string.IsNullOrEmpty(model.TargetUrl) ? new Uri(model.TargetUrl) : null;
5252
pullRequestCheckViewModel.AvatarUrl = model.AvatarUrl ?? DefaultAvatar;
5353
pullRequestCheckViewModel.Avatar = model.AvatarUrl != null
5454
? new BitmapImage(new Uri(model.AvatarUrl))

0 commit comments

Comments
 (0)