Skip to content

Commit

Permalink
Fix initialization of editor
Browse files Browse the repository at this point in the history
  • Loading branch information
m7medVision committed Jan 13, 2024
1 parent 680f56b commit aa37238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion islands/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Editor(props: CounterProps) {
}
};
initializeEditor();
}, [props.preCode]);
}, [window.editor]);

const [output, setOutput] = useState<string>("");
const { showToast } = useToast();
Expand Down

0 comments on commit aa37238

Please sign in to comment.