Fix
parent
38731c726a
commit
5495aa8e01
|
@ -9,7 +9,7 @@ export const Editor: VFC = () => {
|
|||
useEffect(() => {
|
||||
if (monacoEl) {
|
||||
setEditor((editor) => {
|
||||
if (editor) return;
|
||||
if (editor) return editor;
|
||||
|
||||
return monaco.editor.create(monacoEl.current!, {
|
||||
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
|
||||
|
|
Loading…
Reference in New Issue