Commit 4574dcca authored by Lijiao's avatar Lijiao Committed by QuanluZhang
Browse files

Support intermediate is dict (#835)

Support intermediate is dict
parent de9e2842
......@@ -79,7 +79,12 @@ class TableList extends React.Component<TableListProps, TableListState> {
if (res.status === 200) {
const intermediateArr: number[] = [];
Object.keys(res.data).map(item => {
intermediateArr.push(parseFloat(res.data[item].data));
const temp = JSON.parse(res.data[item].data);
if (typeof temp === 'object') {
intermediateArr.push(temp.default);
} else {
intermediateArr.push(temp);
}
});
const intermediate = intermediateGraphOption(intermediateArr, id);
if (this._isMounted) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment