From 4d786dc6975d13c04ba95980922ff169dd1648c9 Mon Sep 17 00:00:00 2001
From: Alexander Rose <alex.rose@rcsb.org>
Date: Thu, 3 Oct 2019 11:50:18 -0700
Subject: [PATCH] fix missing awaits in StructureRepresentationHelper.preset

---
 src/mol-plugin/util/structure-representation-helper.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mol-plugin/util/structure-representation-helper.ts b/src/mol-plugin/util/structure-representation-helper.ts
index f14484abf..5cd38db19 100644
--- a/src/mol-plugin/util/structure-representation-helper.ts
+++ b/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)
             }
         }
     }
-- 
GitLab