File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/containers/Tenant/Diagnostics Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ function Overview(props: OverviewProps) {
6969 currentSchemaPath,
7070 } = useSelector ( ( state : any ) => state . schema ) ;
7171
72- const { data : olapStats } = useSelector ( ( state : any ) => state . olapStats ) ;
72+ let { data : olapStats } = useSelector ( ( state : any ) => state . olapStats ) ;
73+ olapStats = olapStats && olapStats . result ? olapStats . result : olapStats ;
7374
7475 const fetchOverviewData = ( ) => {
7576 const { tenantName, type} = props ;
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ const mapStateToProps = (state) => {
171171 const { autorefresh} = state . schema ;
172172 return {
173173 loading,
174- data,
174+ data : data && data . result ? data . result : data ,
175175 error,
176176 wasLoaded,
177177 autorefresh,
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ const mapStateToProps = (state) => {
220220 const { autorefresh} = state . schema ;
221221 return {
222222 loading,
223- data,
223+ data : data && data . result ? data . result : data ,
224224 error,
225225 currentSchemaPath : state . schema ?. currentSchema ?. Path ,
226226 autorefresh,
You can’t perform that action at this time.
0 commit comments