fix: page jumping for alerts (#5119)

This commit is contained in:
Vikrant Gupta 2024-05-31 13:37:27 +05:30 committed by GitHub
parent b849705710
commit 6aded04b7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -252,11 +252,11 @@ function ChartPreview({
{queryResponse.error.message || t('preview_chart_unexpected_error')}
</FailedMessageContainer>
)}
{queryResponse.isLoading && (
<Spinner size="large" tip="Loading..." height="70vh" />
)}
{chartData && !queryResponse.isError && (
<div ref={graphRef} style={{ height: '100%' }}>
{queryResponse.isLoading && (
<Spinner size="large" tip="Loading..." height="100%" />
)}
<GridPanelSwitch
options={options}
panelType={graphType}