Browse Source

Merge pull request 'fix panel not working in grafana 10' (#18) from fix-panel-not-working-in-grafana-10 into master

Reviewed-on: #18
pull/19/head
rozetko 1 year ago
parent
commit
507757bc72
  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 = ( const mainDiv = (
<div> <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"> <HorizontalGroup justify="flex-end">
<Button variant="primary" icon="plus" style={{ marginTop: '8px' }} onClick={openDatasourceModal}> <Button variant="primary" icon="plus" style={{ marginTop: '8px' }} onClick={openDatasourceModal}>
Add Task Add Task

Loading…
Cancel
Save