Browse Source

mol-plugin: remove passRepresentation from Highlight command

David Sehnal 5 years ago
parent
commit
baa80d08dd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/mol-plugin-ui/state/tree.tsx
  2. 1 1
      src/mol-plugin/command.ts

+ 1 - 1
src/mol-plugin-ui/state/tree.tsx

@@ -193,7 +193,7 @@ class StateTreeNodeLabel extends PluginUIComponent<
 
     highlight = (e: React.MouseEvent<HTMLElement>) => {
         e.preventDefault();
-        PluginCommands.State.Highlight.dispatch(this.plugin, { state: this.props.cell.parent, ref: this.ref, passRepresentation: true });
+        PluginCommands.State.Highlight.dispatch(this.plugin, { state: this.props.cell.parent, ref: this.ref });
         e.currentTarget.blur();
     }
 

+ 1 - 1
src/mol-plugin/command.ts

@@ -26,7 +26,7 @@ export const PluginCommands = {
 
         ToggleExpanded: PluginCommand<{ state: State, ref: StateTransform.Ref }>(),
         ToggleVisibility: PluginCommand<{ state: State, ref: StateTransform.Ref }>(),
-        Highlight: PluginCommand<{ state: State, ref: StateTransform.Ref, passRepresentation?: boolean }>(),
+        Highlight: PluginCommand<{ state: State, ref: StateTransform.Ref }>(),
         ClearHighlight: PluginCommand<{ state: State, ref: StateTransform.Ref }>(),
 
         Snapshots: {