Skip to content

Commit

Permalink
fix(datastore): clear before start with nextjs (#10234)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch authored Aug 30, 2022
1 parent 7f2534d commit 98dd9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/datastore/src/storage/adapter/IndexedDBAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ class IndexedDBAdapter implements Adapter {
async clear(): Promise<void> {
await this.checkPrivate();

this.db.close();
this.db?.close();

await idb.deleteDB(this.dbName);

Expand Down

0 comments on commit 98dd9f2

Please sign in to comment.