Skip to content

Commit

Permalink
better key set to accordion on edit avoiding warning about key being …
Browse files Browse the repository at this point in the history
…index
  • Loading branch information
ichim-david committed Aug 17, 2023
1 parent 53a82a6 commit 21bb15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Accordion/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const Edit = (props) => {
handleTitleClick={() => setSelectedBlock({})}
data={data}
index={index}
key={index}
key={`accordion-${index}`}
>
<BlocksForm
key={uid}
Expand Down

0 comments on commit 21bb15f

Please sign in to comment.