Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Oct 16, 2024
1 parent 63e6bb3 commit dc8dbe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/playground/src/react/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface EditorCommand {
export const Editor: FunctionComponent<EditorProps> = ({ model, options, actions, onMount }) => {
const editorContainerRef = useRef(null);
const editorRef = useRef<editor.IStandaloneCodeEditor | null>(null);

useEffect(() => {
editorRef.current = editor.create(editorContainerRef.current!, {
model,
Expand Down

0 comments on commit dc8dbe4

Please sign in to comment.