Browse Source

panel-header: Simplify condition

Johannes Schill 7 years ago
parent
commit
0430bb47c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/core/components/Tooltip/Popover.tsx

+ 1 - 1
public/app/core/components/Tooltip/Popover.tsx

@@ -6,7 +6,7 @@ class Popover extends PureComponent<UsingPopperProps> {
   render() {
     const { children, hidePopper, showPopper, className, ...restProps } = this.props;
 
-    const togglePopper = restProps.show === true ? hidePopper : showPopper;
+    const togglePopper = restProps.show ? hidePopper : showPopper;
 
     return (
       <div className={`popper__manager ${className}`} onClick={togglePopper}>