--- a/client/src/components/SessionList.js Tue Jul 25 19:11:26 2017 +0200
+++ b/client/src/components/SessionList.js Fri Jul 28 19:40:35 2017 +0200
@@ -7,6 +7,7 @@
import Navbar from './Navbar';
import * as sessionsActions from '../actions/sessionsActions';
import uuidV1 from 'uuid/v1';
+import { ActionEnum } from '../constants';
class SessionList extends Component {
@@ -85,7 +86,7 @@
function mapStateToProps(state, props) {
return {
- sessions: state['sessions'].filter(session => !session.deleted)
+ sessions: state.get('sessions').filter(session => session.get('action') !== ActionEnum.DELETED)
};
}