Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsindex 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();