Skip to content

Build your personal knowledge base with Trilium Notes

chore(types): fix error in backend log due to mismatching types

Elian Doranff075464a257
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 6ec033df53..2db3e00314 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();