From ba9a344db725c72237b387fbe6e16db95f7a5833 Mon Sep 17 00:00:00 2001 From: Alf Eaton <eaton.alf@gmail.com> Date: Thu, 23 Feb 2017 12:09:13 +0000 Subject: [PATCH] Load the fragments for this book --- app/components/BookBuilder/BookBuilder.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/BookBuilder/BookBuilder.jsx b/app/components/BookBuilder/BookBuilder.jsx index f4e9fad..4122478 100644 --- a/app/components/BookBuilder/BookBuilder.jsx +++ b/app/components/BookBuilder/BookBuilder.jsx @@ -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) ) } -- GitLab