From 7f1d4fbdda40a1721b633ad252a7dbba74157ee5 Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Wed, 29 Oct 2025 22:17:45 -0400 Subject: [PATCH] asdf --- raggr-frontend/src/components/ConversationList.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/raggr-frontend/src/components/ConversationList.tsx b/raggr-frontend/src/components/ConversationList.tsx index 8369e8e..8b9fbb9 100644 --- a/raggr-frontend/src/components/ConversationList.tsx +++ b/raggr-frontend/src/components/ConversationList.tsx @@ -22,8 +22,14 @@ export const ConversationList = ({ useEffect(() => { const loadConversations = async () => { try { - const fetchedConversations = + let fetchedConversations = await conversationService.getAllConversations(); + + if (conversations.length == 0) { + await conversationService.createConversation(); + fetchedConversations = + await conversationService.getAllConversations(); + } setConversations( fetchedConversations.map((conversation) => ({ id: conversation.id,