diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx index ceda1ff..7b83a6e 100644 --- a/src/components/Sidebar/index.tsx +++ b/src/components/Sidebar/index.tsx @@ -105,78 +105,82 @@ const Sidebar = () => { <> {projects && - projects.map((project) => ( + projects.map((project, index) => (
history.push(`/project/${project.id}`)} />
{}, label: project.name }]} + items={[{ label: project.name }]} />
))} {templates && - templates.map((template) => ( + templates.map((template, index) => (
history.push(`/template/${template.id}`)} />
{}, label: template.name }]} + items={[{ label: template.name }]} />
))} {features && - features.map((feature) => ( + features.map((feature, index) => (
history.push(`/feature/${feature.id}`)} />
{}, label: feature.name }]} + items={[{ label: feature.name }]} />
))} {categories && - categories.map((category) => ( + categories.map((category, index) => (
history.push(`/category/${category.id}`)} />
{}, label: category.name }]} + items={[{ label: category.name }]} />
))}