fix panel not working in grafana 10 #18

Merged
rozetko merged 1 commits from fix-panel-not-working-in-grafana-10 into master 1 year ago
  1. 2
      src/panels/corpglory-dataexporter-panel/components/Panel.tsx

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

@ -499,7 +499,7 @@ export function Panel({ width, height, timeRange, eventBus, timeZone }: Props) {
);
const mainDiv = (
<div>
<Table width={width} height={height - 40} data={tasksDataFrame as DataFrame} />
{tasksDataFrame && <Table width={width} height={height - 40} data={tasksDataFrame as DataFrame} />}
<HorizontalGroup justify="flex-end">
<Button variant="primary" icon="plus" style={{ marginTop: '8px' }} onClick={openDatasourceModal}>
Add Task

Loading…
Cancel
Save