Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modified the utility method '_mutateStateToAddItem(...)' to also stor…
…e new field 'id' for each item leveraging the logic added in the previous commit.
  • Loading branch information
maratbn committed Aug 5, 2018
1 parent e1f5345 commit c8a1e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack_in/entry.jsx
Expand Up @@ -83,7 +83,8 @@ class ListWidget extends React.Component {
items: [
...state.items,
{
caption: strItemCaption
id: state.total_added,
caption: strItemCaption
}
],
total_added: state.total_added + 1
Expand Down

0 comments on commit c8a1e79

Please sign in to comment.