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
                 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' } } });
         } else {
             representation = await plugin.builders.structure.representation.applyPreset(structureProperties!, 'auto');