Timothy J. Baek hai 8 meses
pai
achega
143ac08c35
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib/components/chat/MessageInput/Suggestions.svelte

+ 1 - 1
src/lib/components/chat/MessageInput/Suggestions.svelte

@@ -9,7 +9,7 @@
 
 	let prompts = [];
 
-	$: prompts = suggestionPrompts
+	$: prompts = (suggestionPrompts ?? [])
 		.reduce((acc, current) => [...acc, ...[current]], [])
 		.sort(() => Math.random() - 0.5);
 	// suggestionPrompts.length <= 4