From 80d62489ebfc57c3a7c9dc713edc82cd6135d6a6 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Fri, 11 Sep 2020 10:16:31 +0200 Subject: [PATCH] fix: remove unnecessary async modifiers --- app/assets/javascripts/ui_models/editor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;