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');