Skip to content

Commit 11f93a8

Browse files
authored
Update ImportFolderButton.tsx
added fix
1 parent 64814d5 commit 11f93a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/chat/ImportFolderButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ export const ImportFolderButton: React.FC<ImportFolderButtonProps> = ({ classNam
5454
toast.info(`Skipping ${binaryFilePaths.length} binary files`);
5555
}
5656

57-
const { userMessage, assistantMessage } = await createChatFromFolder(textFiles, binaryFilePaths, folderName);
57+
const messages = await createChatFromFolder(textFiles, binaryFilePaths, folderName);
5858

5959
if (importChat) {
60-
await importChat(folderName, [userMessage, assistantMessage]);
60+
await importChat(folderName, [...messages]);
6161
}
6262

6363
toast.success('Folder imported successfully');

0 commit comments

Comments
 (0)