From 66edd3034f73b69d1f0f2eb66a5d87ee6bf35511 Mon Sep 17 00:00:00 2001 From: myl7 Date: Sat, 27 Nov 2021 17:00:32 +0800 Subject: [PATCH] remove meaningless console log --- components/FileListing.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/FileListing.tsx b/components/FileListing.tsx index ece6fb8..c401bc3 100644 --- a/components/FileListing.tsx +++ b/components/FileListing.tsx @@ -217,7 +217,6 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) = const genTotalSelected = (selected: { [key: string]: boolean }) => { const selectInfo = getFiles().map((c: any) => Boolean(selected[c.id])) const [hasT, hasF] = [selectInfo.some(i => i), selectInfo.some(i => !i)] - console.log(hasT, hasF) return hasT && hasF ? 1 : (!hasF ? 2 : 0) } const toggleItemSelected = (id: string) => {