diff --git a/src/mol-plugin-state/builder/structure/representation-preset.ts b/src/mol-plugin-state/builder/structure/representation-preset.ts index 3eb9bdf539867ef6e5057fcd4afcd37a877ac820..887e28e5d0bb94622a7910f96bcdeaa6ccbdfce4 100644 --- a/src/mol-plugin-state/builder/structure/representation-preset.ts +++ b/src/mol-plugin-state/builder/structure/representation-preset.ts @@ -59,10 +59,8 @@ export namespace StructureRepresentationPresetProvider { } export function updateFocusRepr<T extends ColorTheme.BuiltIn>(plugin: PluginContext, structure: Structure, themeName: T | undefined, themeParams: ColorTheme.BuiltInParams<T> | undefined) { - if (!themeName && !themeParams) return; - return plugin.state.updateBehavior(StructureFocusRepresentation, p => { - const c = createStructureColorThemeParams(plugin, structure, 'ball-and-stick', themeName, themeParams); + const c = createStructureColorThemeParams(plugin, structure, 'ball-and-stick', themeName || 'element-symbol', themeParams); p.surroundingsParams.colorTheme = c; p.targetParams.colorTheme = c; });