diff --git a/src/panels/corpglory-dataexporter-panel/components/Panel.tsx b/src/panels/corpglory-dataexporter-panel/components/Panel.tsx index 0663e08..5ebbd74 100644 --- a/src/panels/corpglory-dataexporter-panel/components/Panel.tsx +++ b/src/panels/corpglory-dataexporter-panel/components/Panel.tsx @@ -38,10 +38,7 @@ export function Panel({ options, data, width, height, timeRange, onChangeTimeRan return makeRequest('/tasks', {}); } - setTimeout(() => { - - getTasks().then(tasks => setTasks(tasks)).catch(err => console.error(err)); - }, 2000); + getTasks().then(tasks => setTasks(tasks)).catch(err => console.error(err)); }, []); function onAddTaskClick(): void { @@ -54,7 +51,7 @@ export function Panel({ options, data, width, height, timeRange, onChangeTimeRan return (
- {dataFrame === null ? + {dataFrame === null ? // TODO: if datasource responds with error, display the error :