{/* File Image Preview */}
- {getFilePreviewUrl(uploadedFile) ? (
+ {isUploading ? (
+
+ ) : getFilePreviewUrl(uploadedFile) ? (
Date: Mon, 24 Nov 2025 17:37:42 -0300
Subject: [PATCH 12/12] fix: show files only if chat context files exist (#491)
* Show files only when existent
* Fixed formatting
---
frontend/components/navigation.tsx | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
diff --git a/frontend/components/navigation.tsx b/frontend/components/navigation.tsx
index 773117fb..4efd1403 100644
--- a/frontend/components/navigation.tsx
+++ b/frontend/components/navigation.tsx
@@ -472,19 +472,15 @@ export function Navigation({
>
)}
-
-
-
- Files
-
-
-
- {(newConversationFiles?.length ?? 0) === 0 ? (
-
- No documents yet
-
- ) : (
- newConversationFiles?.map((file, index) => (
+ {(newConversationFiles?.length ?? 0) !== 0 && (
+
+
+
+ Files
+
+
+
+ {newConversationFiles?.map((file, index) => (
- ))
- )}
+ ))}
+
-
+ )}
)}