Skip to content

Commit

Permalink
Fix reply order issue
Browse files Browse the repository at this point in the history
  • Loading branch information
akasunil committed Dec 4, 2024
1 parent 29218bb commit 989bb45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/editor/src/components/collab-sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,12 @@ export default function CollabSidebar() {
}
} );

result.map( ( item ) => {
item.reply = item.reply.reverse();
return item;
} );
const updatedResult = result.map( ( item ) => ( {
...item,
reply: [ ...item.reply ].reverse(),
} ) );

return result;
return updatedResult;
}, [ threads ] );

// Get the global styles to set the background color of the sidebar.
Expand Down

0 comments on commit 989bb45

Please sign in to comment.