浏览代码

Fix docking-viewer presets

David Sehnal 4 年之前
父节点
当前提交
295cb84cc8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);