diff --git a/app/assets/javascripts/ui_models/editor.ts b/app/assets/javascripts/ui_models/editor.ts index 32687870e..7c03fbdb6 100644 --- a/app/assets/javascripts/ui_models/editor.ts +++ b/app/assets/javascripts/ui_models/editor.ts @@ -29,8 +29,8 @@ export class Editor { private streamItems() { this.removeStreamObserver = this.application.streamItems( ContentType.Note, - async (items, source) => { - await this.handleNoteStream(items as SNNote[], source); + (items, source) => { + this.handleNoteStream(items as SNNote[], source); } ); } @@ -44,7 +44,7 @@ export class Editor { this._onNoteValueChange = undefined; } - private async handleNoteStream(notes: SNNote[], source?: PayloadSource) { + private handleNoteStream(notes: SNNote[], source?: PayloadSource) { /** Update our note object reference whenever it changes */ const matchingNote = notes.find((item) => { return item.uuid === this.note.uuid;