Skip to content

Commit

Permalink
Unwatch state so editor is not re-evaluated after build
Browse files Browse the repository at this point in the history
  • Loading branch information
beliolfa committed Sep 5, 2023
1 parent 06ac04f commit 4167886
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/GOBLBuilder.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
// When `data` is updated, update the internal envelope store.
// If required instantiate a new envelope object to use.
$: {
state = "init";
goblError.set(null);
try {
let parsedValue = null;
Expand All @@ -79,8 +78,6 @@
$envelope = newEnvelope(parsedValue);
initialEditorData = hash(parsedValue || "");
}
state = $envelope?.sigs ? "signed" : "loaded";
} catch (e) {
console.error("invalid document data: ", e);
$envelope = newEnvelope(null);
Expand Down Expand Up @@ -113,7 +110,7 @@
return;
}
state = "loaded";
state = $envelope?.sigs ? "signed" : "loaded";
};
// Exposed functions to perform the actions from outside
Expand Down

0 comments on commit 4167886

Please sign in to comment.