Skip to content

Commit

Permalink
fix: set minimap to null if it is truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 16, 2021
1 parent 09e64b9 commit 3f683d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/minimap-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,10 @@ class MinimapElement {
this.subscriptions.dispose()
this.DecorationManagement.destroy()
this.detach()
this.minimap.minimapElement = null
this.minimap = null
if (this.minimap) {
this.minimap.minimapElement = null
this.minimap = null
}
}

// ###### ####### ## ## ######## ######## ## ## ########
Expand Down

0 comments on commit 3f683d9

Please sign in to comment.