Browse Source

fix clashes variable in validationReportPreset

Alexander Rose 5 years ago
parent
commit
4757ca9913

+ 2 - 2
src/mol-plugin/behavior/dynamic/custom-props/rcsb/validation-report.ts

@@ -310,8 +310,8 @@ const validationReportPreset = StructureRepresentationPresetProvider({
         const { update, builder, typeParams, color } = StructureRepresentationPresetProvider.reprBuilder(plugin, params);
         let clashesBallAndStick, clashesSnfg3d;
         if (representations) {
-            clashesBallAndStick = builder.buildRepresentation(update, components.clashes, { type: 'ball-and-stick', typeParams, color: colorTheme }, { tag: 'clashes-ball-and-stick' });
-            clashesSnfg3d = builder.buildRepresentation<any>(update, components.clashes, { type: ClashesRepresentationProvider.name, typeParams, color }, { tag: 'clashes-snfg-3d' });
+            clashesBallAndStick = builder.buildRepresentation(update, clashes, { type: 'ball-and-stick', typeParams, color: colorTheme }, { tag: 'clashes-ball-and-stick' });
+            clashesSnfg3d = builder.buildRepresentation<any>(update, clashes, { type: ClashesRepresentationProvider.name, typeParams, color }, { tag: 'clashes-snfg-3d' });
         }
 
         await plugin.updateDataState(update, { revertOnError: false });