Skip to content

Commit

Permalink
Improve talks tab
Browse files Browse the repository at this point in the history
Due to the immutable of talkList the list had to be
copied.
Ref: apollographql/apollo-client#5153
  • Loading branch information
schettn committed Sep 9, 2020
1 parent 9e74c28 commit 5809a79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/organisms/tabs/TalksTab/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ class TalkTab extends React.Component {
render() {
const { loggedUser, fetchedPerson, talkList } = this.props;

if (talkList) {
talkList.map((talk) => {
const talks = JSON.parse(JSON.stringify(talkList));

if (talks) {
talks.map((talk) => {
talk.social = {
likes: 17,
date: new Date().toLocaleDateString("en-US", {
Expand Down

0 comments on commit 5809a79

Please sign in to comment.