correction bug nouvelle conversation

This commit is contained in:
fabien committed 2026-10-05 22:21:57 +02:00
1 parent 509a3b14c8
commit a970bfa991
3 files changed
+6 -2

No files matched your search

Binary file not shown.
@@ -9,7 +9,11 @@
let prompt = $state("") let prompt = $state("")
let { data }: PageProps = $props(); let { data }: PageProps = $props();
let messages = $state(untrack(()=>data.chatWithMessage.messages)) let messages = $state(untrack(()=>{
let msgs = data.chatWithMessage.messages
if (msgs==null) return []
return msgs
}))
let waiting = $state(false) let waiting = $state(false)
onMount(async ()=>{ onMount(async ()=>{
+1 -1
View File
@@ -333,6 +333,6 @@ h2 {
@apply whitespace-pre-line; @apply whitespace-pre-line;
&.reasoning { &.reasoning {
@apply text-white/50; @apply text-black/50 dark:text-white/50;
} }
} }