Simplifying item references in CommentStream.

This commit is contained in:
David Jay
2016-11-21 17:12:55 -05:00
parent f5f38004a2
commit 1a648ca20e
2 changed files with 2 additions and 2 deletions
@@ -112,7 +112,7 @@ class CommentStream extends Component {
</div>
{
rootItem.comments && rootItem.comments.map((commentId) => {
const comment = this.props.items.comments[commentId];
const comment = comments[commentId];
return <div className="comment" key={commentId}>
<hr aria-hidden={true}/>
<AuthorName author={users[comment.author_id]}/>
+1 -1
View File
@@ -3,7 +3,7 @@ import translations from './../translations';
const lang = new I18n(translations);
import * as actions from '../constants/auth';
import {base, handleResp, getInit} from '../helpers/response';
import {addItem} from './items'
import {addItem} from './items';
// Dialog Actions
export const showSignInDialog = () => ({type: actions.SHOW_SIGNIN_DIALOG});