From 873a1fe24e632053162f762abe1d47b7bbd10a69 Mon Sep 17 00:00:00 2001 From: Arnav Agrawal Date: Tue, 25 Mar 2025 16:56:38 -0700 Subject: [PATCH] fix linting errors --- .gitignore | 1 + ui-component/app/page.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6f56d8e..3858eec 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ offload/* test.pdf experiments/* +ui-component/package-lock.json diff --git a/ui-component/app/page.tsx b/ui-component/app/page.tsx index 7335f4d..101b2fa 100644 --- a/ui-component/app/page.tsx +++ b/ui-component/app/page.tsx @@ -58,6 +58,11 @@ interface QueryOptions extends SearchOptions { graph_name?: string; } +interface BatchUploadError { + filename: string; + error: string; +} + const DataBridgeUI = () => { const [activeSection, setActiveSection] = useState('documents'); const [documents, setDocuments] = useState([]); @@ -248,7 +253,7 @@ const DataBridgeUI = () => { // Check if there were any errors during batch upload if (result.errors && result.errors.length > 0) { - const errorMessages = result.errors.map((err: any) => + const errorMessages = result.errors.map((err: BatchUploadError) => `${err.filename}: ${err.error}` ).join('\n'); setError(`Some files failed to upload:\n${errorMessages}`);