Skip to content

Commit

Permalink
sch-1901 (#121)
Browse files Browse the repository at this point in the history
* fix early return bug

* bump js
  • Loading branch information
tenub authored Oct 25, 2024
1 parent d45824e commit 9bdb1c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 1 addition & 2 deletions js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9bdb1c0

Please sign in to comment.