Skip to content

Commit a8b2a8f

Browse files
authored
Merge pull request #3568 from RedisInsight/fe/bugfix/RI-5895_statistics_page_error
Fe/bugfix/ri 5895 statistics page error
2 parents aa19b89 + af7795e commit a8b2a8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

redisinsight/ui/src/pages/rdi/statistics/StatisticsPage.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { isEmpty } from 'lodash'
22
import React, { useEffect } from 'react'
33
import { useDispatch, useSelector } from 'react-redux'
44
import { useParams } from 'react-router-dom'
5+
import { EuiText } from '@elastic/eui'
56

67
import { connectedInstanceSelector } from 'uiSrc/slices/rdi/instances'
78
import { getPipelineStatusAction, rdiPipelineStatusSelector } from 'uiSrc/slices/rdi/pipeline'
@@ -86,6 +87,11 @@ const StatisticsPage = () => {
8687
return null
8788
}
8889

90+
// todo add interface
91+
if (statisticsResults.status === 'failed') {
92+
return <EuiText style={{ margin: '20px auto' }}>Unexpected error in your RDI endpoint, please refresh the page</EuiText>
93+
}
94+
8995
const { data: statisticsData } = statisticsResults
9096

9197
return (

0 commit comments

Comments
 (0)