Skip to content

Commit

Permalink
Skip documentation node id remapping if node is not changed (#8876)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkuttappan authored Aug 24, 2024
1 parent 969d7f1 commit 4aea26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotnet/APIView/APIViewWeb/Helpers/CodeFileHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ private static void RemapDocumentationLines(List<ReviewLine> activeLines, Dictio
line.DiffKind = diffKind;
var newHashId = line.GetTokenNodeIdHash(newParentId, idx);

if (documentationRowMap.ContainsKey(oldHashId))
if (documentationRowMap.ContainsKey(oldHashId) && !newHashId.Equals(oldHashId))
{
documentationRowMap[newHashId] = documentationRowMap[oldHashId];
documentationRowMap.Remove(oldHashId);
Expand Down

0 comments on commit 4aea26a

Please sign in to comment.