Yana Rose hace 4 años
padre
commit
749cd8ab94
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3 4
      src/viewer/helpers/preset.ts

+ 3 - 4
src/viewer/helpers/preset.ts

@@ -164,12 +164,11 @@ export const RcsbSuperpositionRepresentationPreset = StructureRepresentationPres
 
             const { update, builder, typeParams, color } = reprBuilder(plugin, params);
 
-            let typeProps = {};
+            let typeProps = {...typeParams}
             if (expr.type === 'cartoon') {
-                typeProps = {...typeParams, ...cartoonProps}
-            } else {
-                typeProps = {...typeParams}
+                Object.assign(typeProps, {...cartoonProps})
             }
+
             Object.assign(representations, {
                 [expr.label]: builder.buildRepresentation(update, comp, {type: expr.type,
                     typeParams: typeProps, color: color as any}, { tag: expr.tag }),