(improvement)(chat-sdk) show table when data length is 1 (#1755)

This commit is contained in:
williamhliu
2024-10-09 14:39:31 +08:00
committed by GitHub
parent fc040970b2
commit 485a4a19f3

View File

@@ -111,6 +111,7 @@ const ChatMsg: React.FC<Props> = ({
(categoryField.length > 1 ||
queryMode === 'TAG_DETAIL' ||
queryMode === 'ENTITY_DIMENSION' ||
dataSource?.length === 1 ||
(categoryField.length === 1 && metricFields.length === 0));
if (isTable) {