Skip to content

Commit

Permalink
Merge pull request #3854 from avin-kavish/patch-1
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
hediet authored Mar 21, 2023
2 parents 38731c7 + 5495aa8 commit 8307f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/browser-esm-vite-react/src/components/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 8307f38

Please sign in to comment.