From e5ea176a9897537dfdd7bf3c306fc8c2f27e3975 Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Thu, 15 Nov 2018 09:17:39 +0100 Subject: [PATCH] panel-header: Simplify condition --- public/app/core/components/Tooltip/Popover.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/components/Tooltip/Popover.tsx b/public/app/core/components/Tooltip/Popover.tsx index 136ff98ff9d..62397243c1c 100644 --- a/public/app/core/components/Tooltip/Popover.tsx +++ b/public/app/core/components/Tooltip/Popover.tsx @@ -6,7 +6,7 @@ class Popover extends PureComponent { render() { const { children, hidePopper, showPopper, className, ...restProps } = this.props; - const togglePopper = restProps.show === true ? hidePopper : showPopper; + const togglePopper = restProps.show ? hidePopper : showPopper; return (