Change var keyword to const (#53206)

pull/53211/head
Victor Marin 3 years ago committed by GitHub
parent c7d3fec515
commit 34b7c38314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/grafana-ui/src/components/uPlot/config/addTooltipSupport.ts

@ -37,7 +37,7 @@ export const addTooltipSupport = ({
// Ensure tooltip is closed on config changes
isToolTipOpen.current = false;
var onMouseLeave = () => {
const onMouseLeave = () => {
if (!isToolTipOpen.current) {
setCoords(null);
}
@ -52,7 +52,7 @@ export const addTooltipSupport = ({
ref_over.addEventListener('mouseleave', onMouseLeave);
});
var clearPopupIfOpened = () => {
const clearPopupIfOpened = () => {
if (isToolTipOpen.current) {
setCoords(null);
onUPlotClick();

Loading…
Cancel
Save