(fix)(chat-sdk) fix date change bug and hide recommend metrics tip when no metrics (#478)

This commit is contained in:
williamhliu
2023-12-06 20:54:31 +08:00
committed by GitHub
parent 9679169e6f
commit e6ab7cb5ff
3 changed files with 23 additions and 19 deletions

View File

@@ -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}>