Skip to content

Commit

Permalink
Remove corrected state
Browse files Browse the repository at this point in the history
  • Loading branch information
beliolfa committed Nov 20, 2024
1 parent 3c37898 commit d3906b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/EnvelopeEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
// Expose activeHeader
export let activeHeader: DocumentHeader | undefined = undefined;
// If autocorrect is set to false the envelope is not updated automatically. Event `corrected` is always fired with the result
// If autocorrect is set to false the envelope is not updated automatically. Event `correct` is always fired with the result
export let autocorrect = true;
// If hideConsoleBar is true will force to hide the error suggestions in Code View
Expand Down Expand Up @@ -202,7 +202,7 @@
dispatch("correct", result);
state = "corrected";
state = "built";
if (!editorForm) return true;
Expand All @@ -225,7 +225,7 @@
return "errored";
}
return "signed"
return "signed";
};
export const validate = async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/types/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Readable, Writable } from "svelte/store";
import type { UIModelRootField } from "$lib/editor/form/utils/model";
import type { Envelope } from "./envelope";

export type State = "init" | "empty" | "loaded" | "modified" | "invalid" | "errored" | "built" | "signed" | "corrected";
export type State = "init" | "empty" | "loaded" | "modified" | "invalid" | "errored" | "built" | "signed";

export type DocumentHeader = {
label: string;
Expand Down

0 comments on commit d3906b1

Please sign in to comment.