From e6e41c117bb0b4226e5eebc00685bc65ff4d1fa8 Mon Sep 17 00:00:00 2001 From: Willie Date: Mon, 30 Mar 2026 18:27:52 +0800 Subject: [PATCH] fix(ui): use props instead of parent scope vars in FolderTreeView activeItems/activeTab are not accessible inside the FolderTreeView sub-component. Use the skills prop (already passed) instead. --- ui/src/pages/ResourcesPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/ResourcesPage.tsx b/ui/src/pages/ResourcesPage.tsx index 22e4d67c2..784ca98b3 100644 --- a/ui/src/pages/ResourcesPage.tsx +++ b/ui/src/pages/ResourcesPage.tsx @@ -1362,7 +1362,7 @@ function FolderTreeView({ skills, totalCount, isSearching, stickyTop = 0, onClea )} ) : ( - <>{activeItems.length} {activeTab === 'agents' ? 'agent' : 'skill'}{activeItems.length !== 1 ? 's' : ''} in {folderCount} folder{folderCount !== 1 ? 's' : ''} + <>{skills.length} item{skills.length !== 1 ? 's' : ''} in {folderCount} folder{folderCount !== 1 ? 's' : ''} )} {folderCount > 1 && (