Skip to content

Commit

Permalink
Fix " > base64State is not defined"
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Sep 17, 2021
1 parent 4804046 commit 113c50e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/view.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { codeStore } from '$lib/util/state';
import { onMount } from 'svelte';
import * as mermaid from 'mermaid';
import mermaid from 'mermaid';
let code = '';
let config = '';
Expand Down
3 changes: 2 additions & 1 deletion src/routes/edit.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
import { initHandler, syncDiagram } from '$lib/util/util';
import { errorStore } from '$lib/util/error';
import { onMount } from 'svelte';
import * as mermaid from 'mermaid';
import mermaid from 'mermaid';
import type monaco from 'monaco-editor';
import type { EditorUpdateEvent, State, Tab } from '$lib/types';
import { base } from '$app/paths';
base64State; // Weird fix for error > base64State is not defined. Treeshaking?
let selectedMode = 'code';
const languageMap = {
code: 'mermaid',
Expand Down

0 comments on commit 113c50e

Please sign in to comment.