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> {}
export function Panel({ width, height, timeRange, eventBus }: Props) {
// TODO: Dashboard type
const [dashboard, setDashboard] = useState<any | null>(null);
const [datasources, setDatasources] = useState<DataSourceSettings[] | null>(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()

Loading…
Cancel
Save