mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
various fixes and small refactorings
This commit is contained in:
@@ -30,10 +30,9 @@ export default class NoteTitleWidget extends TabAwareWidget {
|
||||
super(appContext);
|
||||
|
||||
this.spacedUpdate = new SpacedUpdate(async () => {
|
||||
const noteId = this.tabContext.note.noteId;
|
||||
const title = this.$noteTitle.val();
|
||||
|
||||
await server.put(`notes/${noteId}/change-title`, {title});
|
||||
await server.put(`notes/${this.noteId}/change-title`, {title});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user