mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
chore: format issue 1046 frontend changes
This commit is contained in:
parent
a42d4d219b
commit
663096a074
1 changed files with 2 additions and 3 deletions
|
|
@ -118,9 +118,8 @@ function transformComments(
|
|||
|
||||
for (const [messageId, group] of byMessage) {
|
||||
const comments: Comment[] = group.topLevel.map((raw) => {
|
||||
const replies = (group.replies.get(raw.id) ?? []).toSorted(
|
||||
(a, b) => new Date(a.created_at).getTime() - new Date(b.created_at).getTime()
|
||||
)
|
||||
const replies = (group.replies.get(raw.id) ?? [])
|
||||
.toSorted((a, b) => new Date(a.created_at).getTime() - new Date(b.created_at).getTime())
|
||||
.map((r) => transformReply(r, memberMap, currentUserId, isOwner));
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue