diff -r a28361bda28c -r e55ae84508bf client/src/components/SessionList.js --- a/client/src/components/SessionList.js Mon Sep 03 20:02:14 2018 +0200 +++ b/client/src/components/SessionList.js Wed Sep 05 12:27:52 2018 +0200 @@ -42,28 +42,6 @@ this.setState({modalIsOpen: false}); } - createSession = () => { - const sessionId = uuidV1(); - let groupName = null; - let protocol = null; - if(this.props.currentGroup) { - groupName = this.props.currentGroup.get('name'); - protocol = this.props.currentGroup.get('protocol'); - } - if(groupName === null) { - groupName = (this.props.currentUser)?this.props.currentUser.get('default_group'):null; - if(groupName != null) { - const group = this.props.groups.find((g) => g.name === groupName); - if(group) { - protocol = group.get('protocol'); - } - } - } - - this.props.sessionsActions.createSession(sessionId, groupName, protocol); - this.props.history.push('/sessions/' + sessionId); - } - onClickDelete(session, e) { e.preventDefault(); e.stopPropagation(); @@ -90,7 +68,6 @@ return (