Skip to content

Commit

Permalink
Merge pull request #12 from YousefED/patch-1
Browse files Browse the repository at this point in the history
fix awareness check
  • Loading branch information
dmonad authored Jan 7, 2022
2 parents 2243c71 + 099cf3a commit 15df01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/y-monaco.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class MonacoBinding {
this._monacoChangeHandler.dispose()
this.ytext.unobserve(this._ytextObserver)
this.doc.off('beforeAllTransactions', this._beforeTransaction)
if (this.awareness !== null) {
if (this.awareness) {
this.awareness.off('change', this._rerenderDecorations)
}
}
Expand Down

0 comments on commit 15df01e

Please sign in to comment.