From 701ce447c2b4309a144a30f2dc051bf5650dd18f Mon Sep 17 00:00:00 2001 From: Joshua Tenorio Date: Sat, 4 Jan 2025 15:45:53 -0700 Subject: [PATCH] misc: added file filter to improve selecting files for upload --- src/routes/_app/upload.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/_app/upload.tsx b/src/routes/_app/upload.tsx index c2d1104..bb9f645 100644 --- a/src/routes/_app/upload.tsx +++ b/src/routes/_app/upload.tsx @@ -79,6 +79,8 @@ function UploadPage() { for (let i = 0; i < Object.keys(selection).length; i++) { const key: number = parseInt(Object.keys(selection)[i]); // TODO type is wonky + // don't add to upload list if we are using filter and + // the file include the filter as a substring if(filterActive && !uploads[key].filepath.includes((filter[0] as any).value)) { continue; }