Просмотр исходного кода

fix missing awaits in StructureRepresentationHelper.preset

Alexander Rose 5 лет назад
Родитель
Сommit
4d786dc697
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/mol-plugin/util/structure-representation-helper.ts

+ 4 - 4
src/mol-plugin/util/structure-representation-helper.ts

@@ -178,14 +178,14 @@ export class StructureRepresentationHelper {
         const s = structures[0].obj!.data
 
         if (s.elementCount < 50000) {
-            polymerAndLigand(this)
+            await polymerAndLigand(this)
         } else if (s.elementCount < 200000) {
-            proteinAndNucleic(this)
+            await proteinAndNucleic(this)
         } else {
             if (s.unitSymmetryGroups[0].units.length > 10) {
-                capsid(this)
+                await capsid(this)
             } else {
-                coarseCapsid(this)
+                await coarseCapsid(this)
             }
         }
     }