mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 10:18:48 +00:00
changed variable name to postId
This commit is contained in:
parent
a4b7f7a107
commit
51fc965a90
@ -61,7 +61,7 @@ exports.getAllPosts = (req, res) => {
|
||||
userImage: doc.data().userImage,
|
||||
microBlogTitle: doc.data().microBlogTitle,
|
||||
microBlogTopics: doc.data().microBlogTopics,
|
||||
id: doc.id,
|
||||
postId: doc.id,
|
||||
});
|
||||
});
|
||||
return res.status(200).json(posts);
|
||||
|
||||
@ -95,7 +95,7 @@ class user extends Component {
|
||||
|
||||
let posts = classes.data
|
||||
let recentPostsMarkup = posts ? (
|
||||
this.state.posts.map(post => <Posts key={post.id} post={post}/>)
|
||||
this.state.posts.map(post => <Posts key={post.postId} post={post}/>)
|
||||
) : ( <p> Loading... </p> );
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user