fix(web): Handle null/undefined starCount and installCount (#1970)

* Initial plan

* fix(web): Handle null/undefined values for starCount and installCount

Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com>

* fix(web): Hide star count badge when API fails instead of showing '0'

Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com>
This commit is contained in:
Copilot
2026-02-11 16:55:32 +08:00
committed by GitHub
parent 59d55b382d
commit 8fd0c3cc18

View File

@@ -110,7 +110,7 @@ export default function PluginMarketCardComponent({
<line x1="12" y1="15" x2="12" y2="3" />
</svg>
<div className="text-xs sm:text-sm text-[#2563eb] dark:text-[#5b8def] font-medium whitespace-nowrap">
{cardVO.installCount.toLocaleString()}
{cardVO.installCount?.toLocaleString() ?? '0'}
</div>
</div>