Przeglądaj źródła

tweak hasStructConnRecord

dsehnal 2 lat temu
rodzic
commit
f8e2d2e3d0

+ 2 - 0
src/mol-model/structure/structure/unit/bonds/inter-compute.ts

@@ -261,6 +261,8 @@ function computeInterUnitBonds(structure: Structure, props?: Partial<InterBondCo
 }
 
 function hasStructConnRecord(unit: Unit) {
+    if (!Unit.isAtomic(unit)) return false;
+
     const elements = unit.elements;
     const structConn = StructConn.Provider.get(unit.model);
     if (structConn) {