diff -r a2e61192db50 -r fcce52a159bc client/src/components/SessionList.js --- a/client/src/components/SessionList.js Mon Aug 27 19:53:40 2018 +0200 +++ b/client/src/components/SessionList.js Tue Aug 28 16:57:31 2018 +0200 @@ -12,6 +12,7 @@ import { getCurrentUser, getGroups, getCurrentGroup } from '../selectors/authSelectors'; class SessionList extends Component { + constructor(props) { super(props); this.state = { @@ -81,19 +82,19 @@ render() { return (
- +
{this.props.sessions.map((session) => - this.props.history.push('/sessions/' + session.get('_id'))}> -
- {session.title || ''}
- {moment(session.get('date')).format('DD/MM/YYYY')}
- {session.description}
-
- delete - + this.props.history.push('/sessions/' + session.get('_id'))}> + )}