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

This commit is contained in:
Elian Doran 2025-05-15 15:35:47 +03:00
parent 7c1b13a2e7
commit ff075464a2
No known key found for this signature in database

View File

@ -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();