dynamic-routing-sidebar #67

Merged
Ghost merged 3 commits from dynamic-routing-sidebar into main 2024-01-24 21:23:50 +00:00
Showing only changes of commit c5c4ab7178 - Show all commits

View File

@@ -92,7 +92,7 @@ export function Sidebar(props: SidebarProps) {
React.useEffect(() => { React.useEffect(() => {
if (entityData) { if (entityData) {
menuEntityEntries = Array.isArray(entityData.data) menuEntityEntries = Array.isArray(entityData.data)
? entityData.data.map((entity, index) => ({ ? entityData.data.map((entity) => ({
icon: <PersonIcon />, icon: <PersonIcon />,
label: entity.name, label: entity.name,
to: `/client/${entity.name}`, to: `/client/${entity.name}`,