Skip to content

An AI-powered search engine with a generative UI

style: apply prettier formatting

Yoshiki Miura11cd06e1ff75
diff --git a/lib/streaming/helpers/prepare-messages.ts b/lib/streaming/helpers/prepare-messages.ts
index a631252c..dcb675b6 100644
--- a/lib/streaming/helpers/prepare-messages.ts
+++ b/lib/streaming/helpers/prepare-messages.ts
@@ -59,7 +59,9 @@ export async function prepareMessages(
await deleteMessagesFromIndex(chatId, messageId, userId)
// Reload chat to get the updated message list after deletion
const updatedChat = await loadChat(chatId, userId)
- return updatedChat?.messages || currentChat.messages.slice(0, messageIndex)
+ return (
+ updatedChat?.messages || currentChat.messages.slice(0, messageIndex)
+ )
} else {
// User message edit
if (message && message.id === messageId) {