From ff075464a257222c59446edf72b2d97ce315fe2d Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 15 May 2025 15:35:47 +0300 Subject: [PATCH] chore(types): fix error in backend log due to mismatching types --- .../src/widgets/type_widgets/abstract_code_type_widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();