From c6073b894a09052586d4ffc2b81702a41dfc19a5 Mon Sep 17 00:00:00 2001
From: JonStargaryen <sebastian.bittrich@rcsb.org>
Date: Thu, 20 May 2021 11:38:04 -0700
Subject: [PATCH] ASA coloring wrong after removing part of a chain #132

---
 .../computed/accessible-surface-area/shrake-rupley.ts          | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/mol-model-props/computed/accessible-surface-area/shrake-rupley.ts b/src/mol-model-props/computed/accessible-surface-area/shrake-rupley.ts
index d88fb6bcc..80d9c9d22 100644
--- a/src/mol-model-props/computed/accessible-surface-area/shrake-rupley.ts
+++ b/src/mol-model-props/computed/accessible-surface-area/shrake-rupley.ts
@@ -101,9 +101,8 @@ namespace AccessibleSurfaceArea {
     }
 
     export function getValue(location: StructureElement.Location, accessibleSurfaceArea: AccessibleSurfaceArea) {
-        const { getSerialIndex } = location.structure.root.serialMapping;
         const { area, serialResidueIndex } = accessibleSurfaceArea;
-        const rSI = serialResidueIndex[getSerialIndex(location.unit, location.element)];
+        const rSI = serialResidueIndex[location.element];
         if (rSI === -1) return -1;
         return area[rSI];
     }
-- 
GitLab