feat: 历史事件对比没数据数量展示0

This commit is contained in:
zdl
2025-11-04 20:07:21 +08:00
parent 7f01a391e0
commit 7fdc9e26af

View File

@@ -41,7 +41,7 @@ const CollapsibleHeader = ({ title, isOpen, onToggle, count = null }) => {
<Heading size="sm" color={headingColor}>
{title}
</Heading>
{count !== null && (
{count !== null && count > 0 && (
<Badge colorScheme="blue" borderRadius="full">
{count}
</Badge>