From 79d7ca0dc5a8ab174abd40d567aa1ebd91c17951 Mon Sep 17 00:00:00 2001 From: shenlan Date: Tue, 11 Nov 2025 14:47:53 +0800 Subject: [PATCH] Fix download page total file reducer typing (#670) --- dashboard/src/app/download/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/app/download/page.tsx b/dashboard/src/app/download/page.tsx index 8ec4762..51c1651 100644 --- a/dashboard/src/app/download/page.tsx +++ b/dashboard/src/app/download/page.tsx @@ -20,7 +20,7 @@ export default function DownloadHome() { const topLevelDirectories = rootListing?.entries.filter((entry: DirEntry) => entry.type === 'dir') ?? [] const totalCollections = Object.values(sectionsMap).reduce((total, sections) => total + sections.length, 0) - const totalFiles = topLevelDirectories.reduce((total, entry) => { + const totalFiles = topLevelDirectories.reduce((total: number, entry: DirEntry) => { const listing = findListing(allListings, [entry.name]) return total + (listing ? countFiles(listing, allListings) : 0) }, 0)