Skip to content

Commit

Permalink
Fix migration changes being lost on loaded account
Browse files Browse the repository at this point in the history
  • Loading branch information
aeplay committed Jan 2, 2024
1 parent 2190716 commit dd8dba6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cojson/src/localNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ export class LocalNode {
node.syncManager.local = node;

controlledAccount.core.node = node;
node.coValues[accountID] = {
state: "loaded",
coValue: controlledAccount.core,
};

const profileID = account.get("profile");
if (!profileID) {
Expand Down

0 comments on commit dd8dba6

Please sign in to comment.