From 1e2413dac49a5dd41b10894547aacf2a7da9bc4a Mon Sep 17 00:00:00 2001 From: rozetko Date: Fri, 30 Dec 2022 15:38:53 +0300 Subject: [PATCH] eslint disable --- .../corpglory-dataexporter-panel/components/Panel.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/panels/corpglory-dataexporter-panel/components/Panel.tsx b/src/panels/corpglory-dataexporter-panel/components/Panel.tsx index 0c1b1d6..9c7494a 100644 --- a/src/panels/corpglory-dataexporter-panel/components/Panel.tsx +++ b/src/panels/corpglory-dataexporter-panel/components/Panel.tsx @@ -29,7 +29,6 @@ import * as _ from 'lodash'; interface Props extends PanelProps {} export function Panel({ width, height, timeRange, eventBus }: Props) { - // TODO: Dashboard type const [dashboard, setDashboard] = useState(null); const [datasources, setDatasources] = useState(null); @@ -88,7 +87,7 @@ export function Panel({ width, height, timeRange, eventBus }: Props) { setQueries(queries); }); - }, [dashboard, datasources]); + }, [dashboard, datasources]); // eslint-disable-line react-hooks/exhaustive-deps useEffect(() => { if (tasks === null) { @@ -96,16 +95,16 @@ export function Panel({ width, height, timeRange, eventBus }: Props) { } const dataFrame = getDataFrameForTaskTable(tasks); setTasksDataFrame(dataFrame); - }, [tasks]); + }, [tasks]); // eslint-disable-line react-hooks/exhaustive-deps - useEffect(refresh, []); + useEffect(refresh, []); // eslint-disable-line react-hooks/exhaustive-deps useEffect(() => { if (queries === null) { return; } setQueriesDataFrame(getDataFrameForQueriesTable(queries)); - }, [queries]); + }, [queries]); // eslint-disable-line react-hooks/exhaustive-deps function refresh(): void { getTasks()