diff --git a/src/lib/components/chat/Suggestions.svelte b/src/lib/components/chat/Suggestions.svelte index 9d321563e..b43decd88 100644 --- a/src/lib/components/chat/Suggestions.svelte +++ b/src/lib/components/chat/Suggestions.svelte @@ -53,10 +53,10 @@ } }; - onMount(() => { + $: if (suggestionPrompts) { sortedPrompts = [...(suggestionPrompts ?? [])].sort(() => Math.random() - 0.5); getFilteredPrompts(inputValue); - }); + }