diff --git a/js/package.json b/js/package.json index 3c7b679d..f4c9ae46 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "@schematichq/schematic-js", - "version": "1.0.1", + "version": "1.0.2", "main": "dist/schematic.cjs.js", "module": "dist/schematic.esm.js", "types": "dist/schematic.d.ts", diff --git a/js/src/index.ts b/js/src/index.ts index fc5ac9a8..5717d33e 100644 --- a/js/src/index.ts +++ b/js/src/index.ts @@ -317,8 +317,7 @@ export class Schematic { return new Promise((resolve, reject) => { // Confirm that the context has changed; if it hasn't, we don't need to do anything if (contextString(context) == contextString(this.context)) { - resolve(); - return; + return resolve(this.setIsPending(false)); } this.context = context;