Skip to content

Commit

Permalink
kroki: don't make copy of the state
Browse files Browse the repository at this point in the history
  • Loading branch information
skrobul committed Jan 19, 2022
1 parent 6ab1b29 commit c59351c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/components/actions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@
};
const onKrokiClick = () => {
const stateCopy = JSON.parse(JSON.stringify($codeStore));
const krokiCode = getKrokiCode(stateCopy.code);
const krokiCode = getKrokiCode($codeStore.code);
const krokiUrl = `${krokiRendererUrl}/mermaid/svg/${krokiCode}`;
return window.open(krokiUrl, '_blank');
};
Expand Down

0 comments on commit c59351c

Please sign in to comment.