Sfoglia il codice sorgente

panel-header: Simplify condition

Johannes Schill 7 anni fa
parent
commit
e5ea176a98
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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}>