We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb639cb commit 64d9017Copy full SHA for 64d9017
frontend/src/app/pages/DashBoardPage/hooks/useWidgetAutoFetch.ts
@@ -21,7 +21,6 @@ import { BoardInfoContext } from '../components/BoardProvider/BoardInfoProvider'
21
import { VizRenderMode, Widget } from '../pages/Board/slice/types';
22
import { isElView } from '../utils/board';
23
24
-let timer: NodeJS.Timeout;
25
export default function useWidgetAutoFetch(
26
widget: Widget,
27
renderMode: VizRenderMode,
@@ -32,6 +31,7 @@ export default function useWidgetAutoFetch(
32
31
const { onWidgetGetData } = useContext(WidgetActionContext);
33
34
useEffect(() => {
+ let timer: NodeJS.Timeout | undefined = undefined;
35
if (
36
rendered &&
37
boardVisible &&
0 commit comments