Skip to content

Commit

Permalink
fix: use optional chaining in unmountDataTip
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 28, 2020
1 parent 0a979f3 commit 8b2d646
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/datatip-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,7 @@ export class DataTipManager {
*/
unmountDataTip() {
this.currentMarkerRange = null
if (this.dataTipMarkerDisposables) {
this.dataTipMarkerDisposables.dispose()
}
this.dataTipMarkerDisposables?.dispose()
this.dataTipMarkerDisposables = null
}
}

0 comments on commit 8b2d646

Please sign in to comment.