mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update renderThreadComments.js
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
function renderThreadComments(comments) {
|
||||
const commentKeys = Object.keys(comments);
|
||||
const commentKeys = Object.keys(comments? comments : {});
|
||||
const renderedComments = commentKeys.map(key => {
|
||||
const comment = comments[key];
|
||||
const { replies: { pages: { topAll: { comments: nestedComments = [] } = {} } = {} } = {} } = comment;
|
||||
|
||||
Reference in New Issue
Block a user