From 0202f8f38b88b59007acc662ac930ec43ce7df80 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sun, 28 Apr 2024 16:32:45 +0530 Subject: [PATCH] More debug --- web/apps/photos/src/components/Upload/Uploader.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/apps/photos/src/components/Upload/Uploader.tsx b/web/apps/photos/src/components/Upload/Uploader.tsx index d7485398f5..cf4578fd80 100644 --- a/web/apps/photos/src/components/Upload/Uploader.tsx +++ b/web/apps/photos/src/components/Upload/Uploader.tsx @@ -366,12 +366,13 @@ export default function Uploader(props: Props) { setDesktopFilePaths([]); } - log.debug(() => "Uploader received:"); + log.debug(() => "Uploader invoked"); log.debug(() => fileOrPathsToUpload.current); fileOrPathsToUpload.current = pruneHiddenFiles( fileOrPathsToUpload.current, ); + if (fileOrPathsToUpload.current.length === 0) { props.setLoading(false); return; @@ -386,6 +387,8 @@ export default function Uploader(props: Props) { ); setImportSuggestion(importSuggestion); + log.debug(() => importSuggestion); + handleCollectionCreationAndUpload( importSuggestion, props.isFirstUpload,