Skip to content

Commit 4166736

Browse files
committed
Use stage value as list key
1 parent ef85f42 commit 4166736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/elements/layout/SidebarLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ export const GenericConceptsSidebar = (props: GenericConceptsSidebarProps) => {
492492
<div className="section-divider"/>
493493
<h5>Filter by stage</h5>
494494
<ul className="ps-2">
495-
{getFilteredStageOptions().map((stage, i) =>
496-
<li key={i}>
495+
{getFilteredStageOptions().map((stage) =>
496+
<li key={stage.value}>
497497
<StyledCheckbox checked={searchStages.includes(stage.value)}
498498
label={<>{stage.label} <span className="text-muted">({stageCounts[stage.value]})</span></>}
499499
data-bs-theme={conceptFilters.length === 1 ? conceptFilters[0].id : undefined}

0 commit comments

Comments
 (0)