Browse Source

Fix docking-viewer presets

David Sehnal 4 năm trước cách đây
mục cha
commit
295cb84cc8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);