@@ -55,7 +55,7 @@ const phaseFeedHOC = (Component) => {
5555 * which is accepted by Feed component
5656 */
5757 prepareFeed ( ) {
58- const { topic, allMembers, currentMemberRole, phase } = this . props
58+ const { topic, error , allMembers, currentMemberRole, phase } = this . props
5959 const { showAll } = this . state
6060
6161 if ( ! topic ) {
@@ -64,6 +64,7 @@ const phaseFeedHOC = (Component) => {
6464
6565 const feed = {
6666 ...topic ,
67+ error,
6768 // Github issue##623, allow comments on all posts (including system posts)
6869 allowComments : true ,
6970 user : isSystemUser ( topic . userId ) ? SYSTEM_USER : allMembers [ topic . userId ] ,
@@ -170,10 +171,10 @@ const phaseFeedHOC = (Component) => {
170171
171172 const mapStateToProps = ( { phasesTopics, loadUser, members, productsTimelines, notifications } , props ) => {
172173 const product = _ . get ( props . phase , 'products[0]' )
174+ const phaseTopicState = phasesTopics [ props . phase . id ] || { }
175+
173176 return {
174- topic : _ . get ( phasesTopics [ props . phase . id ] , 'topic' ) ,
175- isLoading : _ . get ( phasesTopics [ props . phase . id ] , 'isLoading' , false ) ,
176- isAddingComment : _ . get ( phasesTopics [ props . phase . id ] , 'isAddingComment' , false ) ,
177+ ...phaseTopicState ,
177178 currentUser : loadUser . user ,
178179 allMembers : members . members ,
179180 timeline : _ . get ( productsTimelines [ product . id ] , 'timeline' ) ,
0 commit comments