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

Fetch the fragments for this book

parent ba9a344d
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,12 @@ export class SimpleEditorWrapper extends React.Component { ...@@ -17,10 +17,12 @@ export class SimpleEditorWrapper extends React.Component {
} }
componentWillMount () { componentWillMount () {
const { getCollections, getFragments } = this.props.actions const { book, actions } = this.props
const { getCollections, getFragments } = actions
getCollections().then(result => { // TODO: might not need to fetch all the collections?
getFragments(result.collections[0]) getCollections().then(() => {
getFragments(book)
}) })
const { user } = this.props const { user } = this.props
......
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