Browse Source

eslint disable

pull/5/head
rozetko 2 years ago
parent
commit
1e2413dac4
  1. 9
      src/panels/corpglory-dataexporter-panel/components/Panel.tsx

9
src/panels/corpglory-dataexporter-panel/components/Panel.tsx

@ -29,7 +29,6 @@ import * as _ from 'lodash';
interface Props extends PanelProps<PanelOptions> {} interface Props extends PanelProps<PanelOptions> {}
export function Panel({ width, height, timeRange, eventBus }: Props) { export function Panel({ width, height, timeRange, eventBus }: Props) {
// TODO: Dashboard type // TODO: Dashboard type
const [dashboard, setDashboard] = useState<any | null>(null); const [dashboard, setDashboard] = useState<any | null>(null);
const [datasources, setDatasources] = useState<DataSourceSettings[] | null>(null); const [datasources, setDatasources] = useState<DataSourceSettings[] | null>(null);
@ -88,7 +87,7 @@ export function Panel({ width, height, timeRange, eventBus }: Props) {
setQueries(queries); setQueries(queries);
}); });
}, [dashboard, datasources]); }, [dashboard, datasources]); // eslint-disable-line react-hooks/exhaustive-deps
useEffect(() => { useEffect(() => {
if (tasks === null) { if (tasks === null) {
@ -96,16 +95,16 @@ export function Panel({ width, height, timeRange, eventBus }: Props) {
} }
const dataFrame = getDataFrameForTaskTable(tasks); const dataFrame = getDataFrameForTaskTable(tasks);
setTasksDataFrame(dataFrame); setTasksDataFrame(dataFrame);
}, [tasks]); }, [tasks]); // eslint-disable-line react-hooks/exhaustive-deps
useEffect(refresh, []); useEffect(refresh, []); // eslint-disable-line react-hooks/exhaustive-deps
useEffect(() => { useEffect(() => {
if (queries === null) { if (queries === null) {
return; return;
} }
setQueriesDataFrame(getDataFrameForQueriesTable(queries)); setQueriesDataFrame(getDataFrameForQueriesTable(queries));
}, [queries]); }, [queries]); // eslint-disable-line react-hooks/exhaustive-deps
function refresh(): void { function refresh(): void {
getTasks() getTasks()

Loading…
Cancel
Save