Skip to content

Commit

Permalink
fix: Use correct index for dsn selection (#11397)
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome authored Sep 19, 2024
1 parent 2fe2285 commit 75e041f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/codeKeywords/keywordSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,13 @@ export function KeywordSelector({keyword, group, index}: KeywordSelectorProps) {
.filter(({title}) => {
return title.includes(orgFilter);
})
.map((item, idx) => {
.map(item => {
const idx = choices.findIndex(({title}) => title === item.title);
const isActive = idx === currentSelectionIdx;
return (
<ItemButton
data-sentry-mask
key={idx}
key={item.title}
isActive={isActive}
onClick={() => {
const newSharedSelection = {...sharedSelection};
Expand Down

0 comments on commit 75e041f

Please sign in to comment.