Skip to content

Commit

Permalink
fix: gist example with jscode (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqianwen0418 authored May 10, 2022
1 parent 9253f48 commit a94e1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ function Editor(props: any) {
if (active && !!code) {
setReadOnly(false);
setCode(code);
setCode(json2js(code));
setJsCode(json2js(code));
setGistTitle(title);
setDescription(description);
}
Expand Down

0 comments on commit a94e1c1

Please sign in to comment.