Skip to content

Commit eb880be

Browse files
committed
fix: process new query format
1 parent c40b706 commit eb880be

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/containers/Tenant/Diagnostics/Overview/Overview.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

src/containers/Tenant/Diagnostics/TopQueries/TopQueries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

src/containers/Tenant/Diagnostics/TopShards/TopShards.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)