Dashboard: fix SoloPanelPage (#36060)

This commit is contained in:
Agnès Toulet 2021-06-23 15:13:25 +02:00 committed by GitHub
parent f5bd325354
commit db81e55512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,24 +84,26 @@ export class SoloPanelPage extends Component<Props, State> {
}
return (
<AutoSizer className="panel-solo">
{({ width, height }) => {
if (width === 0) {
return null;
}
return (
<DashboardPanel
width={width}
height={height}
dashboard={dashboard}
panel={panel}
isEditing={false}
isViewing={false}
isInView={true}
/>
);
}}
</AutoSizer>
<div className="panel-solo">
<AutoSizer>
{({ width, height }) => {
if (width === 0) {
return null;
}
return (
<DashboardPanel
width={width}
height={height}
dashboard={dashboard}
panel={panel}
isEditing={false}
isViewing={false}
isInView={true}
/>
);
}}
</AutoSizer>
</div>
);
}
}