mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
chore(types): fix error in backend log due to mismatching types
This commit is contained in:
parent
7c1b13a2e7
commit
ff075464a2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user