diff --git a/src/mol-repr/structure/visual/util/nucleotide.ts b/src/mol-repr/structure/visual/util/nucleotide.ts index 22fe970f1692264dadea9354d0b454aa44fea7bc..8e8ed71d1e3ad7de88cede0d4e6d5000bb6e77ef 100644 --- a/src/mol-repr/structure/visual/util/nucleotide.ts +++ b/src/mol-repr/structure/visual/util/nucleotide.ts @@ -35,7 +35,9 @@ export function getNucleotideElementLoci(pickingId: PickingId, structureGroup: S if (id === objectId) { const { structure, group } = structureGroup const unit = group.units[instanceId] - return getResidueLoci(structure, unit, unit.polymerElements[groupId]) + if (Unit.isAtomic(unit)) { + return getResidueLoci(structure, unit, unit.polymerElements[groupId]) + } } return EmptyLoci }