Skip to content
Snippets Groups Projects
Commit 5fa9c964 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

fix(editorial-comments): fix qa bugs

parent f22b0c8f
No related branches found
No related tags found
1 merge request!10Sprint #12
...@@ -50,8 +50,8 @@ const EditorialComment = ({ ...@@ -50,8 +50,8 @@ const EditorialComment = ({
export default compose( export default compose(
setDisplayName('EditorialComment'), setDisplayName('EditorialComment'),
withProps(({ recommendationType, comments = [] }) => ({ withProps(({ recommendation, comments = [] }) => ({
reason: parseRecommendationType(recommendationType), reason: parseRecommendationType(recommendation),
comments: parseRecommendationComments(comments), comments: parseRecommendationComments(comments),
})), })),
)(EditorialComment) )(EditorialComment)
......
...@@ -9,7 +9,7 @@ import { EditorialComment } from './' ...@@ -9,7 +9,7 @@ import { EditorialComment } from './'
const EditorialComments = ({ recommendations, handlingEditor }) => ( const EditorialComments = ({ recommendations, handlingEditor }) => (
<Root> <Root>
<Expandable label="Editorial comments"> <Expandable label="Editorial comments" startExpanded>
{recommendations.map(r => ( {recommendations.map(r => (
<EditorialComment key={r.id} {...r} handlingEditor={handlingEditor} /> <EditorialComment key={r.id} {...r} handlingEditor={handlingEditor} />
))} ))}
......
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