fix: revert stateStr change

This commit is contained in:
Sidharth Vinod
2021-10-09 11:24:41 +05:30
parent 5494911830
commit 9aba3693f1
+1 -2
View File
@@ -43,9 +43,8 @@ export const base64State: Readable<string> = derived([codeStore], ([code], set)
export const loadState = (data: string): void => {
let state: State;
let stateStr: string;
try {
stateStr = fromBase64(data);
const stateStr = fromBase64(data);
console.log(`Trying to load state: ${stateStr}`);
state = JSON.parse(stateStr);
const mermaidConfig =