Browse Source

return tassks

pull/9/head
vargburz 1 year ago
parent
commit
29d7c5393c
  1. 8
      src/panels/corpglory-dataexporter-panel/components/Panel.tsx

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

@ -113,10 +113,10 @@ export function Panel({ width, height, timeRange, eventBus }: Props) {
}, [dashboard, datasources]); // eslint-disable-line react-hooks/exhaustive-deps
useEffect(() => {
// if (tasks === null) {
// return;
// }
const dataFrame = getDataFrameForTaskTable([]);
if (tasks === null) {
return;
}
const dataFrame = getDataFrameForTaskTable(tasks);
setTasksDataFrame(dataFrame);
}, [tasks]); // eslint-disable-line react-hooks/exhaustive-deps

Loading…
Cancel
Save