Skip to content
Snippets Groups Projects
Commit ba9a344d authored by Alf Eaton's avatar Alf Eaton Committed by john
Browse files

Load the fragments for this book

parent c2d0e177
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@ export class BookBuilder extends React.Component {
}
componentWillMount () {
const { getUsers, getTeams, getCollections, getFragments } = this.props.actions
const { actions, book } = this.props
const { getUsers, getTeams, getCollections, getFragments } = actions
// console.log(this.props.actions)
......@@ -41,8 +42,7 @@ export class BookBuilder extends React.Component {
return getCollections()
}
).then(
// TODO: This will have to work for multiple collections
(result) => getFragments(result.collections[0])
() => getFragments(book)
)
}
......
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