Browse Source

fix panel not working in grafana 10

pull/18/head
rozetko 1 year ago
parent
commit
2f80b19690
  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