Skip to content

Commit 1b8cd7f

Browse files
authored
(fix)(chat-sdk)Fix the pie chart display conditions (#2255)
1 parent 2fd82cc commit 1b8cd7f

File tree

1 file changed

+1
-1
lines changed
  • webapp/packages/chat-sdk/src/components/ChatMsg

1 file changed

+1
-1
lines changed

webapp/packages/chat-sdk/src/components/ChatMsg/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const ChatMsg: React.FC<Props> = ({
122122
}
123123

124124
const isMetricPie =
125-
metricFields.length > 0 &&
125+
categoryField.length > 0 &&
126126
metricFields?.length === 1 &&
127127
(isMobile ? dataSource?.length <= 5 : dataSource?.length <= 10) &&
128128
dataSource.every(item => item[metricFields[0].bizName] > 0);

0 commit comments

Comments
 (0)