Skip to content

Commit

Permalink
Fix loading tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Jun 28, 2022
1 parent a02bd4b commit 33e2773
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/components/view.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
let manualUpdate = true;
onMount(() => {
stateStore.subscribe((state) => {
console.log(state);
if (state.error !== undefined) {
error = true;
return;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/util/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const loadState = (data: string): void => {
}
state.mermaid = JSON.stringify(mermaidConfig, null, 2);
} catch (e) {
state = get(stateStore);
state = get(inputStateStore);
if (data) {
console.error('Init error', e);
state.code = urlParseFailedState;
Expand Down

0 comments on commit 33e2773

Please sign in to comment.