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()