Skip to content

Commit

Permalink
fix: missed an await
Browse files Browse the repository at this point in the history
  • Loading branch information
nadilas committed Jun 23, 2024
1 parent 6590717 commit c21308b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ogre/src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export class Repository<T extends { [k: PropertyKey]: any }>

private async moveTo(commit: Commit) {
const deserializeFn = this.deserializeObjectFn ?? defaultDeserializeFn;
const targetTree = deserializeFn<T>(commit.tree);
const targetTree = await deserializeFn<T>(commit.tree);
const patchToTarget = compare(this.data, targetTree);
if (!patchToTarget || patchToTarget.length < 1) {
return;
Expand Down

0 comments on commit c21308b

Please sign in to comment.