mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-17 16:02:14 +00:00
(fix)(chat-sdk) fix date change bug and hide recommend metrics tip when no metrics (#478)
This commit is contained in:
@@ -29,6 +29,10 @@ const MetricOptions: React.FC<Props> = ({
|
||||
[`${prefixCls}-metric-card`]: isMetricCard,
|
||||
});
|
||||
|
||||
if (!defaultMetrics.length) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={prefixCls}>
|
||||
<div className={sectionClass}>
|
||||
|
||||
Reference in New Issue
Block a user