|
@@ -7,7 +7,7 @@ class UserList extends React.Component {
|
|
|
|
|
|
render () {
|
|
|
const { state, actions } = this.props
|
|
|
- console.log('UserList', state, actions)
|
|
|
+ console.log('UserList waka', state, actions)
|
|
|
|
|
|
let user = null
|
|
|
|
|
@@ -32,11 +32,11 @@ class UserList extends React.Component {
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {state.users ? state.users.forEach(user => {
|
|
|
- <tr>
|
|
|
+ {state.users ? state.users.map((user, key) =>
|
|
|
+ <tr key={key}>
|
|
|
<td>{user.name}</td><td>{user.username}</td><td><a>editieren</a><a>loeschen</a></td>
|
|
|
</tr>
|
|
|
- }) : ""}
|
|
|
+ ) : ""}
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|