feat: support import and export with prompts (#330)
* feat: support import and export prompts * test: update importExports.test.ts * Delete .gitpod.yml
This commit is contained in:
+2
-1
@@ -296,11 +296,12 @@ const Home: React.FC<HomeProps> = ({
|
||||
};
|
||||
|
||||
const handleImportConversations = (data: SupportedExportFormats) => {
|
||||
const { history, folders }: LatestExportFormat = importData(data);
|
||||
const { history, folders, prompts }: LatestExportFormat = importData(data);
|
||||
|
||||
setConversations(history);
|
||||
setSelectedConversation(history[history.length - 1]);
|
||||
setFolders(folders);
|
||||
setPrompts(prompts);
|
||||
};
|
||||
|
||||
const handleSelectConversation = (conversation: Conversation) => {
|
||||
|
||||
Reference in New Issue
Block a user