Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

fix: Highlight style

Rene Wang99c18702d210
diff --git a/src/features/ResourceManager/components/FolderTree/index.tsx b/src/features/ResourceManager/components/FolderTree/index.tsx
index 3cec31efeae..3266bd04119 100644
--- a/src/features/ResourceManager/components/FolderTree/index.tsx
+++ b/src/features/ResourceManager/components/FolderTree/index.tsx
@@ -60,7 +60,8 @@ export const FolderTreeItemComponent = memo<FolderTreeItemProps>(
}) => {
const itemKey = item.slug || item.id;
const isExpanded = expandedFolders.has(itemKey);
- const isActive = selectedKey === itemKey;
+ // Compare selectedKey with item.id since selectedKey is always the ID
+ const isActive = selectedKey === item.id;
const handleToggle = useCallback(async () => {
// Toggle folder expansion