Skip to content

Commit c0cb004

Browse files
todos contains todo in DisplayList
1 parent af24e20 commit c0cb004

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ep11-switch-to-todo-part2/app/components/DisplayList.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export default class DisplayList extends React.Component {
55

66
render () {
77
return <ul>
8-
{ this.props.todos.map((title, i) => {
8+
{ this.props.todos.map((todo, i) => {
99
return <DisplayItem
10-
key={title}
11-
title={title}
12-
handleDelete={this.props.handleDelete.bind(null, title)} />;
10+
key={todo.title}
11+
title={todo.title}
12+
handleDelete={this.props.handleDelete.bind(null, todo.title)} />;
1313
}) }
1414
</ul>
1515
}

0 commit comments

Comments
 (0)