Skip to content

Commit fe77e69

Browse files
author
Rich Harris
committed
partial fix for #12
1 parent cc3cd30 commit fe77e69

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@lezer/javascript": "^1.4.1",
4747
"@lezer/lr": "^1.3.3",
4848
"@replit/codemirror-lang-svelte": "^6.0.0",
49-
"@rich_harris/svelte-split-pane": "^1.0.0",
49+
"@rich_harris/svelte-split-pane": "^1.0.1",
5050
"@webcontainer/api": "^1.0.2",
5151
"adm-zip": "^0.5.10",
5252
"ansi-to-html": "^0.7.2",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/tutorial/[slug]/Editor.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@
7575
editor_states.set(file.name, state);
7676
}
7777
78-
editor_view.setState(state);
78+
if (editor_view) {
79+
editor_view.setState(state);
80+
}
7981
}
8082
8183
onMount(() => {

0 commit comments

Comments
 (0)