mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 03:07:05 +00:00
Update ImportFolderButton.tsx
added fix
This commit is contained in:
parent
64814d56c5
commit
11f93a8800
@ -54,10 +54,10 @@ export const ImportFolderButton: React.FC<ImportFolderButtonProps> = ({ classNam
|
||||
toast.info(`Skipping ${binaryFilePaths.length} binary files`);
|
||||
}
|
||||
|
||||
const { userMessage, assistantMessage } = await createChatFromFolder(textFiles, binaryFilePaths, folderName);
|
||||
const messages = await createChatFromFolder(textFiles, binaryFilePaths, folderName);
|
||||
|
||||
if (importChat) {
|
||||
await importChat(folderName, [userMessage, assistantMessage]);
|
||||
await importChat(folderName, [...messages]);
|
||||
}
|
||||
|
||||
toast.success('Folder imported successfully');
|
||||
|
Loading…
Reference in New Issue
Block a user