Skip to content

Commit

Permalink
added key to MenuItem form to create single instance for each Menu Item
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Sep 30, 2020
1 parent db8e18b commit b5bcc55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widget/MenuConfigurationForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ const MenuConfigurationForm = ({ id, menuItem, onChange, deleteMenuItem }) => {
value={menuItem.showMoreText}
onChange={(id, value) => onChangeFormData('showMoreText', value)}
/>

<UIForm.Field inline className="help wide" id="menu-blocks">
<Grid>
<Grid.Row stretched>
Expand All @@ -201,6 +202,7 @@ const MenuConfigurationForm = ({ id, menuItem, onChange, deleteMenuItem }) => {
<Grid.Column width={12}>
<div className="menu-blocks-container">
<Form
key={id}
formData={menuItem}
visual={true}
hideActions
Expand Down

0 comments on commit b5bcc55

Please sign in to comment.