diff --git a/src/examples/IDBContext.js b/src/examples/IDBContext.js index 1f74c8a9..48c962f8 100644 --- a/src/examples/IDBContext.js +++ b/src/examples/IDBContext.js @@ -126,6 +126,7 @@ export class IDBContext { async sync() { // Wait until all transactions since the previous sync have committed. // Throw if any transaction failed. + await this.#runChain; await this.#putChain; this.#putChain = Promise.resolve(); }