mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Change var keyword to const (#53206)
This commit is contained in:
parent
c7d3fec515
commit
34b7c38314
@ -37,7 +37,7 @@ export const addTooltipSupport = ({
|
|||||||
// Ensure tooltip is closed on config changes
|
// Ensure tooltip is closed on config changes
|
||||||
isToolTipOpen.current = false;
|
isToolTipOpen.current = false;
|
||||||
|
|
||||||
var onMouseLeave = () => {
|
const onMouseLeave = () => {
|
||||||
if (!isToolTipOpen.current) {
|
if (!isToolTipOpen.current) {
|
||||||
setCoords(null);
|
setCoords(null);
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ export const addTooltipSupport = ({
|
|||||||
ref_over.addEventListener('mouseleave', onMouseLeave);
|
ref_over.addEventListener('mouseleave', onMouseLeave);
|
||||||
});
|
});
|
||||||
|
|
||||||
var clearPopupIfOpened = () => {
|
const clearPopupIfOpened = () => {
|
||||||
if (isToolTipOpen.current) {
|
if (isToolTipOpen.current) {
|
||||||
setCoords(null);
|
setCoords(null);
|
||||||
onUPlotClick();
|
onUPlotClick();
|
||||||
|
Loading…
Reference in New Issue
Block a user