diff --git a/ui/src/routes/requests/[request_id]/+page.svelte b/ui/src/routes/requests/[request_id]/+page.svelte index 1ac45ab3..dff2d4cf 100644 --- a/ui/src/routes/requests/[request_id]/+page.svelte +++ b/ui/src/routes/requests/[request_id]/+page.svelte @@ -38,6 +38,11 @@ return 0; }) || []; + + sortedMessages.reverse().forEach(function(item ,index){ + item.id = index; + }) + sortedMessages.reverse(); } $: { @@ -87,7 +92,7 @@ /> {/if} - {#each sortedMessages as message} + {#each sortedMessages as message (message.id)} {/each}