Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
[web] Fix re-save old data
Browse files Browse the repository at this point in the history
  • Loading branch information
maxijonson committed Jul 13, 2023
1 parent e201318 commit c004e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/src/store/persist/migrateOldData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { addCallableFunction } from "../actions/callableFunctions/addCallableFun
import { saveContext } from "../actions/savedContexts/saveContext";
import { savePrompt } from "../actions/savedPrompts/savePrompt";
import { setDefaultSettings } from "../actions/defaultConversationSettings/setDefaultSettings";
import { addPersistedConversationId } from "../actions/persistence/addPersistedConversationId";

const notify = (
title: string,
Expand Down Expand Up @@ -41,6 +42,7 @@ export const migrateOldData = async () => {
addConversation(c);
setConversationName(c.id, name);
setConversationLastEdit(c.id, lastEdited);
addPersistedConversationId(c.id);
} catch (e) {
deleteAfter = false;
console.error(e);
Expand Down

0 comments on commit c004e47

Please sign in to comment.