Skip to content

Commit

Permalink
fix editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pompurin404 committed Jan 10, 2025
1 parent 7cece23 commit c19fb6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/src/components/base/base-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const BaseEditor: React.FC<Props> = (props) => {
const trueTheme = theme === 'system' ? systemTheme : theme
const { value, readOnly = false, language, onChange } = props

const editorRef = useRef<monaco.editor.IStandaloneCodeEditor>()
const editorRef = useRef<monaco.editor.IStandaloneCodeEditor>(undefined)

const editorWillMount = (): void => {
monacoInitialization()
Expand Down Expand Up @@ -141,6 +141,7 @@ export const BaseEditor: React.FC<Props> = (props) => {
}}
editorWillMount={editorWillMount}
editorDidMount={editorDidMount}
editorWillUnmount={(): void => { }}
onChange={onChange}
/>
)
Expand Down

0 comments on commit c19fb6d

Please sign in to comment.