Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Deselect file when file in other upload is selected

Tomas Valentacf274b3f8515
diff --git a/components/Filesystem/File.tsx b/components/Filesystem/File.tsx
index 3a1d6d416..5bd3eb70a 100644
--- a/components/Filesystem/File.tsx
+++ b/components/Filesystem/File.tsx
@@ -82,8 +82,8 @@ function File({
'items-center',
'space-x-1',
'hover:bg-gray-700/80',
- { 'bg-gray-700': isSelected || isSelectedViaRouter },
- { 'bg-transparent': !isSelected && !isSelectedViaRouter }
+ { 'bg-gray-700': isSelectedViaRouter },
+ { 'bg-transparent': !isSelectedViaRouter }
)}
onClick={handleOnClick}
shallow