Commit 3386bc91 authored by Alexandros Georgantas's avatar Alexandros Georgantas

bookbuilder correction

parent 11da04ef
......@@ -474,7 +474,12 @@ function mapStateToProps(state, { match }) {
'index',
)
if (book) {
teams = _.filter(state.teams, t => t.object.id === book.id)
teams = _.filter(state.teams, t => {
if (!t.global) {
return t.object.id === book.id
}
return false
})
}
const { error, currentUser: user, users } = state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment