Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ export function KbPermissionsPanel({

const [activeTab, setActiveTab] = useState(visibleTabs[0]?.id || 'personal')

// Get the currently active tab component
const ActiveComponent = useMemo(() => {
const tab = visibleTabs.find(t => t.id === activeTab)
return tab?.component || PermissionManagementTab
}, [visibleTabs, activeTab])

// Single tab mode: no tabs UI, just render the content
if (visibleTabs.length === 1) {
const TabComponent = visibleTabs[0].component
Expand Down