mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 11:17:02 +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`);
|
toast.info(`Skipping ${binaryFilePaths.length} binary files`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const { userMessage, assistantMessage } = await createChatFromFolder(textFiles, binaryFilePaths, folderName);
|
const messages = await createChatFromFolder(textFiles, binaryFilePaths, folderName);
|
||||||
|
|
||||||
if (importChat) {
|
if (importChat) {
|
||||||
await importChat(folderName, [userMessage, assistantMessage]);
|
await importChat(folderName, [...messages]);
|
||||||
}
|
}
|
||||||
|
|
||||||
toast.success('Folder imported successfully');
|
toast.success('Folder imported successfully');
|
||||||
|
Loading…
Reference in New Issue
Block a user