mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-01-24 20:41:22 +08:00
Fixed abnormal message rendering caused by abnormal value of indicator name field, Supplement for PR #2030 (#2031)
This commit is contained in:
@@ -21,7 +21,7 @@ const MetricCard: React.FC<Props> = ({ data, question, loading, onApplyAuth }) =
|
||||
const { metricInfos } = aggregateInfo || {};
|
||||
|
||||
const indicatorColumn = queryColumns?.find(column => column.showType === 'NUMBER');
|
||||
const indicatorColumnName = indicatorColumn?.nameEn || '';
|
||||
const indicatorColumnName = indicatorColumn?.bizName || '';
|
||||
|
||||
const { dataFormatType, dataFormat } = indicatorColumn || {};
|
||||
const value = queryResults?.[0]?.[indicatorColumnName] || 0;
|
||||
|
||||
Reference in New Issue
Block a user