Skip to content
Snippets Groups Projects
Commit 0cef151b authored by Alf Eaton's avatar Alf Eaton Committed by Yannis Barlas
Browse files

Fetch the fragments for this book

parent 6b68557c
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