From 363191edba472e41aa585d928df545aaf4e102bc Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Mon, 24 Nov 2025 17:37:42 -0300 Subject: [PATCH] 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) => (
- )) - )} + ))} +
-
+ )}
)}