diff --git a/src/dotnet/APIView/APIViewWeb/Helpers/CodeFileHelpers.cs b/src/dotnet/APIView/APIViewWeb/Helpers/CodeFileHelpers.cs index 1bc54ab6c0d..67475d4ac68 100644 --- a/src/dotnet/APIView/APIViewWeb/Helpers/CodeFileHelpers.cs +++ b/src/dotnet/APIView/APIViewWeb/Helpers/CodeFileHelpers.cs @@ -509,7 +509,7 @@ private static void RemapDocumentationLines(List 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);