Skip to content

Commit

Permalink
[1439] Fix unique key prop on Groups' ToolbarActions
Browse files Browse the repository at this point in the history
Fix "Warning: Each Child in a List Should Have a Unique 'key' Prop"

Bug: #1439
Signed-off-by: Axel RICHARD <axel.richard@obeo.fr>
  • Loading branch information
AxelRICHARD committed Nov 16, 2022
1 parent a45c486 commit da332ed
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,12 @@ export const Group = ({ editingContextId, formId, group, widgetSubscriptions, se
toolbar = (
<div className={classes.toolbar}>
{group.toolbarActions.map((toolbarAction) => (
<div className={classes.toolbarAction}>
<div className={classes.toolbarAction} key={toolbarAction.id}>
<ToolbarAction
editingContextId={editingContextId}
formId={formId}
readOnly={readOnly}
widget={toolbarAction}
key={toolbarAction.id}
/>
</div>
))}
Expand Down

0 comments on commit da332ed

Please sign in to comment.