(feature)(webapp) modify view field (#732)

This commit is contained in:
williamhliu
2024-02-21 14:38:10 +08:00
committed by GitHub
parent d10801ef38
commit fc5ff01eca
6 changed files with 36 additions and 14 deletions

View File

@@ -128,13 +128,14 @@ const ChatMsg: React.FC<Props> = ({ queryId, data, chartIndex, triggerResize })
if (
categoryField?.length > 0 &&
metricFields?.length > 0 &&
(isMobile ? dataSource?.length <= 20 : dataSource?.length <= 50)
(isMobile ? dataSource?.length <= 5 : dataSource?.length <= 50)
) {
return (
<Bar
data={{ ...data, queryColumns: columns, queryResults: dataSource }}
triggerResize={triggerResize}
loading={loading}
metricField={metricFields[0]}
/>
);
}