diff -r 6542f93cdc0d -r c77570164050 client/src/components/SessionList.js
--- a/client/src/components/SessionList.js Wed Jul 19 17:03:40 2017 +0200
+++ b/client/src/components/SessionList.js Thu Jul 20 11:23:08 2017 +0200
@@ -55,10 +55,8 @@
{this.props.sessions.map((session) =>
- this.props.history.push('/sessions/' + session.get('_id'))}>
- {session.title || 'No title'} {session.get('_id')} {moment(session.get('date')).format('DD/MM/YYYY')}
+
+ this.props.history.push('/sessions/' + session.get('_id'))}>{session.title || 'No title'} {session.get('_id')} {moment(session.get('date')).format('DD/MM/YYYY')}
delete
@@ -87,7 +85,7 @@
function mapStateToProps(state, props) {
return {
- sessions: state['sessions']
+ sessions: state['sessions'].filter(session => !session.deleted)
};
}