From 3d6cacc1b0d117125e6f69b0bd8ffb60f05859e2 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu <31145988+chidozieononiwu@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:12:26 -0700 Subject: [PATCH] Resolve bug in Review Approver (#7874) --- src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml b/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml index 05e420ea5c6..074cb5da458 100644 --- a/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml +++ b/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml @@ -155,7 +155,7 @@ string approver = null; if (reviewIsApproved) { - var changeAction = Model.ReviewContent.Review.ChangeHistory.First(_ => _.ChangeAction == ReviewChangeAction.Approved); + var changeAction = Model.ReviewContent.Review.ChangeHistory.FirstOrDefault(_ => _.ChangeAction == ReviewChangeAction.Approved); if (changeAction != null) { approver = changeAction.ChangedBy;