From aa61a890b2518cf011b32b0cedb7fae7b1b51d32 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 15 Oct 2024 21:43:20 +0800 Subject: [PATCH] chore: change downloadCount to optional --- web/app/components/plugins/card/card-more-info.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/plugins/card/card-more-info.tsx b/web/app/components/plugins/card/card-more-info.tsx index 8c9d324c35..b3328e53bd 100644 --- a/web/app/components/plugins/card/card-more-info.tsx +++ b/web/app/components/plugins/card/card-more-info.tsx @@ -1,7 +1,7 @@ import DownloadCount from './base/download-count' type Props = { - downloadCount: number + downloadCount?: number tags: string[] } @@ -11,10 +11,10 @@ const CardMoreInfo = ({ }: Props) => { return (
- + {downloadCount !== undefined && } + {downloadCount !== undefined && tags && tags.length > 0 &&
·
} {tags && tags.length > 0 && ( <> -
·
{tags.map(tag => (