Sebastian Bittrich 3 年之前
父節點
當前提交
4654268896
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/viewer/helpers/preset.ts

+ 1 - 1
src/viewer/helpers/preset.ts

@@ -269,7 +269,7 @@ export const RcsbPreset = TrajectoryHierarchyPresetProvider({
                 // fall back to default representation to show something
                 // fall back to default representation to show something
                 representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, 'auto');
                 representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, 'auto');
             }
             }
-        } if (p.kind === 'nakb') {
+        } else if (p.kind === 'nakb') {
             representation = await plugin.builders.structure.representation.applyPreset<any>(structureProperties!, 'auto', { theme: { globalName: 'nakb', focus: { name: 'nakb' } } });
             representation = await plugin.builders.structure.representation.applyPreset<any>(structureProperties!, 'auto', { theme: { globalName: 'nakb', focus: { name: 'nakb' } } });
         } else {
         } else {
             representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, 'auto');
             representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, 'auto');