mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
chore(types): fix error in backend log due to mismatching types
This commit is contained in:
@@ -72,7 +72,7 @@ export default class AbstractCodeTypeWidget extends TypeWidget {
|
|||||||
* @param the note that was changed.
|
* @param the note that was changed.
|
||||||
* @param new content of the note.
|
* @param new content of the note.
|
||||||
*/
|
*/
|
||||||
_update(note: FNote, content: string) {
|
_update(note: { mime: string }, content: string) {
|
||||||
this.codeEditor.setText(content);
|
this.codeEditor.setText(content);
|
||||||
this.codeEditor.setMimeType(note.mime);
|
this.codeEditor.setMimeType(note.mime);
|
||||||
this.codeEditor.clearHistory();
|
this.codeEditor.clearHistory();
|
||||||
|
|||||||
Reference in New Issue
Block a user