File tree
Expand file treeCollapse file tree2 files changed
+2
-2
lines changed Expand file treeCollapse file tree2 files changed
+2
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -7,7 +7,7 @@ const propTypes = {
|
7 | 7 | };
|
8 | 8 |
|
9 | 9 | function Post({ post }) {
|
10 |
| -const commentWidgets = (post.comments || []).map(c => <Comment key={c.id} comment={c} />); |
| 10 | +const commentWidgets = post.comments.map(c => <Comment key={c.id} comment={c} />); |
11 | 11 |
|
12 | 12 | return (
|
13 | 13 | <div className="post">
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -6,7 +6,7 @@ const propTypes = {
|
6 | 6 | };
|
7 | 7 |
|
8 | 8 | function Question({ question }) {
|
9 |
| -const postWidgets = (question.posts || []).map(post => <Post key={post.id} post={post} />); |
| 9 | +const postWidgets = question.posts.map(post => <Post key={post.id} post={post} />); |
10 | 10 |
|
11 | 11 | return (
|
12 | 12 | <div className="question">
|
|
You can’t perform that action at this time.
0 commit comments