Permalink
Browse files

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 Jul 1, 2018
1 parent e1f5345 commit c8a1e79d9c58312ceab6be1f3021ebd4e7a9a6ac
Showing with 2 additions and 1 deletion.
  1. +2 −1 webpack_in/entry.jsx
@@ -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

0 comments on commit c8a1e79

Please sign in to comment.