Skip to content

Commit

Permalink
fix(ui): fix message card rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Nov 24, 2023
1 parent 1067794 commit 5675811
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/src/routes/requests/[request_id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
return 0;
}) || [];
sortedMessages.reverse().forEach(function(item ,index){
item.id = index;
})
sortedMessages.reverse();
console.log(sortedMessages)
}
$: {
Expand Down Expand Up @@ -87,7 +94,7 @@
/>
{/if}

{#each sortedMessages as message}
{#each sortedMessages as message (message.id)}
<MessageCard {...message} />
{/each}

Expand Down

0 comments on commit 5675811

Please sign in to comment.