From 07848907f32d589915185fba8f299e21c1a7a1e2 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 13 Nov 2023 12:11:02 +0000 Subject: [PATCH] Typing error --- frontend/src/components/UploadButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/UploadButton.vue b/frontend/src/components/UploadButton.vue index 64f5859..d203b19 100644 --- a/frontend/src/components/UploadButton.vue +++ b/frontend/src/components/UploadButton.vue @@ -25,7 +25,7 @@ function pasteHandler(event: ClipboardEvent) { const entry = item.webkitGetAsEntry() if (entry?.isFile) { const file = item.getAsFile() - infiles.push(file) + if (file) infiles.push(file) } else if (entry?.isDirectory) { dirs.push(entry as FileSystemDirectoryEntry) }