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.
This commit is contained in:
Willie
2026-04-07 18:05:40 +08:00
parent 974c3d51b1
commit e6e41c117b
+1 -1
View File
@@ -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' : ''}</>
)}
</span>
{folderCount > 1 && (