diff --git a/src/mol-plugin/util/structure-representation-helper.ts b/src/mol-plugin/util/structure-representation-helper.ts index f14484abf60621c0acceb57c1e3ecbde50502ad9..5cd38db1908b4e1e980231ca00a32501ce883383 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) } } }