Bladeren bron

changed comments_ids to comment_ids to match change in backend

Skylsmoi 6 jaren geleden
bovenliggende
commit
2eeb7c2dd9
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/container/HtmlDocument.jsx

+ 1 - 1
src/container/HtmlDocument.jsx Bestand weergeven

96
             ...r,
96
             ...r,
97
             created: (new Date(r.created)).toLocaleString(),
97
             created: (new Date(r.created)).toLocaleString(),
98
             timelineType: 'revision',
98
             timelineType: 'revision',
99
-            commentList: r.comments_ids.map(ci => ({
99
+            commentList: r.comment_ids.map(ci => ({
100
               timelineType: 'comment',
100
               timelineType: 'comment',
101
               ...resCommentWithProperDate.find(c => c.content_id === ci)
101
               ...resCommentWithProperDate.find(c => c.content_id === ci)
102
             })),
102
             })),