Skip to content

Commit e4b6afe

Browse files
andreas-schultzhaschek
authored andcommitted
Fix compile errors
1 parent 978b733 commit e4b6afe

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/extensions/codemirror/CodeMirror.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export const CodeEditor = ({
401401
const updateExtension = (extension: Extension | undefined, parameterCompartment: Compartment): void => {
402402
if(extension) {
403403
currentView.current?.dispatch({
404-
effects: readOnlyCompartment.current.reconfigure(extension)
404+
effects: parameterCompartment.reconfigure(extension)
405405
})
406406
}
407407
}

src/extensions/codemirror/tests/codemirrorTestHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export const compartment = () => {
4545
extension = ext
4646
return ext
4747
},
48-
reconfigure: (content: Extension): StateEffect<unknown> => {
48+
reconfigure: (_content: Extension): StateEffect<unknown> => {
4949
return {} as StateEffect<any>
5050
},
51-
get: (state: EditorState): Extension | undefined => extension
51+
get: (_state: EditorState): Extension | undefined => extension
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)