mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-21 06:04:19 +08:00
[Fix][Chat]Fix time granularity bug in model editing and dashboard display.
(cherry picked from commit b6d1525daa)
This commit is contained in:
@@ -48,7 +48,7 @@ const MetricTrend: React.FC<Props> = ({
|
||||
const { queryColumns, queryResults, aggregateInfo, entityInfo, chatContext } = data;
|
||||
const [chartType, setChartType] = useState('line');
|
||||
|
||||
const dateField: any = queryColumns?.find(
|
||||
const dateField = queryColumns?.find(
|
||||
(column: any) => column.showType === 'DATE' || column.type === 'DATE'
|
||||
);
|
||||
const dateColumnName = dateField?.bizName || '';
|
||||
@@ -80,11 +80,11 @@ const MetricTrend: React.FC<Props> = ({
|
||||
<MetricInfo aggregateInfo={aggregateInfo} currentMetricField={currentMetricField} />
|
||||
)}
|
||||
<div className={`${prefixCls}-select-options`}>
|
||||
<DateOptions
|
||||
chatContext={chatContext}
|
||||
currentDateOption={currentDateOption}
|
||||
onSelectDateOption={onSelectDateOption}
|
||||
/>
|
||||
{/*<DateOptions*/}
|
||||
{/* chatContext={chatContext}*/}
|
||||
{/* currentDateOption={currentDateOption}*/}
|
||||
{/* onSelectDateOption={onSelectDateOption}*/}
|
||||
{/*/>*/}
|
||||
<div>
|
||||
<Select
|
||||
defaultValue="line"
|
||||
|
||||
Reference in New Issue
Block a user