From 5c5b730bb8b1b20c62009e281eeb284509a5d9ce Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Sat, 1 Feb 2025 00:40:30 +0530 Subject: [PATCH] purge logs, unused --- frontend/src/upload/Upload.tsx | 43 ---------------------------------- 1 file changed, 43 deletions(-) diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index 9ea10114..725ecdb1 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -495,49 +495,6 @@ function Upload({ }, }; }); - console.log(ingestor); - }; - - const handleChange = ( - e: React.ChangeEvent, - ) => { - const { name, value } = e.target; - - if (ingestor.type === 'reddit') { - const redditConfig = ingestor.config as RedditIngestorConfig; - setIngestor({ - ...ingestor, - config: { - ...redditConfig, - [name]: - name === 'search_queries' - ? value.split(',').map((item) => item.trim()) - : name === 'number_posts' - ? parseInt(value) - : value, - }, - }); - } else if (ingestor.type === 'github') { - const githubConfig = ingestor.config as GithubIngestorConfig; - setIngestor({ - ...ingestor, - config: { - ...githubConfig, - [name]: value, - }, - }); - } else { - const urlConfig = ingestor.config as - | CrawlerIngestorConfig - | UrlIngestorConfig; - setIngestor({ - ...ingestor, - config: { - ...urlConfig, - [name]: value, - }, - }); - } }; const handleIngestorTypeChange = (type: IngestorType) => {