Browse Source

Fix docking-viewer presets

David Sehnal 4 years ago
parent
commit
295cb84cc8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/examples/docking-viewer/viewport.tsx

+ 1 - 1
src/examples/docking-viewer/viewport.tsx

@@ -139,7 +139,7 @@ const PocketPreset = StructureRepresentationPresetProvider({
 
         const components = {
             ligand: await presetStaticComponent(plugin, structureCell, 'ligand'),
-            surroundings: await plugin.builders.structure.tryCreateComponentFromSelection(structureCell, ligandSurroundings, `selection`),
+            surroundings: await plugin.builders.structure.tryCreateComponentFromSelection(structureCell, ligandSurroundings, `surroundings`),
         };
 
         const { update, builder, typeParams } = StructureRepresentationPresetProvider.reprBuilder(plugin, params);