Skip to content

Commit b4766cc

Browse files
authored
Merge pull request #543 from AppQuality/fix-custom-status-dropdown
🐛 fix(BugStateDropdown.tsx): fix key prop warning by adding unique key to Separator component
2 parents acefa8c + 574dd93 commit b4766cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/components/BugDetail/BugStateDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ const BugStateDropdown = ({ bug }: { bug: Bug }) => {
145145
</Field>
146146
<Menu>
147147
{options &&
148-
options.map((item, i) => (
148+
options.map((item) => (
149149
<>
150-
{i === 5 && <Separator />}
150+
{item.slug === 'solved' && <Separator />}
151151
<StyledItem key={item.slug} value={item}>
152152
{item.icon} {item.text}
153153
</StyledItem>

0 commit comments

Comments
 (0)