diff --git a/app/components/BookBuilder/BookBuilder.jsx b/app/components/BookBuilder/BookBuilder.jsx index 19f4732ed326a2080abb37a9227aca5cdcfc233e..0122e0e5e02f8d22d34a9f6bb216d2db8f984901 100644 --- a/app/components/BookBuilder/BookBuilder.jsx +++ b/app/components/BookBuilder/BookBuilder.jsx @@ -32,8 +32,6 @@ export class BookBuilder extends React.Component { const { actions, book } = this.props const { getCollections, getFragments, getTeams, getUsers } = actions - console.log('props', this.props) - getUsers().then( () => getTeams() ).then( @@ -43,21 +41,16 @@ export class BookBuilder extends React.Component { } ).then( () => { - if (book.id) { - console.log('has book id') - getFragments(book) - } + if (book.id) getFragments(book) } ) } componentWillReceiveProps (nextProps) { - console.log('next', nextProps) const { actions, book } = nextProps const { getFragments } = actions if (book.id && book.id !== this.props.book.id) { - console.log('here') getFragments(book) } } @@ -77,7 +70,7 @@ export class BookBuilder extends React.Component { return t.teamType.name === 'Production Editor' && t.object.id === book.id }) - if (!productionEditorsTeam) return console.log('to crash') + if (!productionEditorsTeam) return const productionEditors = _.filter(users, function (u) { return _.includes(productionEditorsTeam.members, u.id) @@ -255,8 +248,6 @@ BookBuilder.propTypes = { } function mapStateToProps (state, ownProps) { - console.log(state) - let book = _.find(state.collections, function (c) { return c.id === ownProps.params.id }) diff --git a/app/components/BookBuilder/Chapter/ProgressItem.jsx b/app/components/BookBuilder/Chapter/ProgressItem.jsx index 6ec269ae7a405b60e51b4ecdc6335e194316935d..51836cc5fcd9b8b4c30c2a329f8c8029037d30a8 100644 --- a/app/components/BookBuilder/Chapter/ProgressItem.jsx +++ b/app/components/BookBuilder/Chapter/ProgressItem.jsx @@ -57,7 +57,6 @@ export class ProgressItem extends React.Component { canChange () { const { type, roles, chapter } = this.props - console.log('can change', includes(roles, 'admin')) if (includes(roles, 'admin') || includes(roles, 'production-editor')) return true const isActive = (chapter.progress[type] === 1) diff --git a/app/components/SimpleEditor/SimpleEditorWrapper.jsx b/app/components/SimpleEditor/SimpleEditorWrapper.jsx index 277fcae5de559bbcd3834be718db6799baa40a9b..27a98f277f01b3506b032227d3bca01884c7ec64 100644 --- a/app/components/SimpleEditor/SimpleEditorWrapper.jsx +++ b/app/components/SimpleEditor/SimpleEditorWrapper.jsx @@ -91,8 +91,8 @@ SimpleEditorWrapper.propTypes = { book: React.PropTypes.object.isRequired, fragment: React.PropTypes.object, history: React.PropTypes.object.isRequired, - user: React.PropTypes.object.isRequired, - update: React.PropTypes.func + user: React.PropTypes.object.isRequired + // update: React.PropTypes.func } const mapStateToProps = (state, ownProps) => { diff --git a/package.json b/package.json index b97999e0fa8f8503c077e4bea8a90d3dee748057..d22ddad3028c54c63d98e955ebcd138e5a3c7c50 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "pubsweet-component-teams-manager": "0.1.2", "pubsweet-component-theme-editoria": "git+https://gitlab.coko.foundation/yannisbarlas/pubsweet-component-theme-editoria.git", "pubsweet-component-users-manager": "0.1.1", - "pubsweet-server": "0.7.2", + "pubsweet-server": "0.7.3", "pubsweet-theme-plugin": "0.0.1", "react-dnd": "^2.1.4", "react-dnd-html5-backend": "^2.1.2",