diff --git a/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts b/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts index 6ec033df5..2db3e0031 100644 --- a/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts +++ b/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts @@ -72,7 +72,7 @@ export default class AbstractCodeTypeWidget extends TypeWidget { * @param the note that was changed. * @param new content of the note. */ - _update(note: FNote, content: string) { + _update(note: { mime: string }, content: string) { this.codeEditor.setText(content); this.codeEditor.setMimeType(note.mime); this.codeEditor.clearHistory();