Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 379a26b

Browse files
authored
Fix QuickOpen Bug where an Error occur on dismissing the Modal when no Document is opene (#14698)
1 parent 228ac28 commit 379a26b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/search/QuickOpen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,10 @@ define(function (require, exports, module) {
367367
// completes) since ModalBar has already resized the editor and done its own scroll adjustment before
368368
// this event fired - so anything we set here will override the pos that was (re)set by ModalBar.
369369
var editor = EditorManager.getCurrentFullEditor();
370-
if (this._origSelections) {
370+
if (editor && this._origSelections) {
371371
editor.setSelections(this._origSelections);
372372
}
373-
if (this._origScrollPos) {
373+
if (editor && this._origScrollPos) {
374374
editor.setScrollPos(this._origScrollPos.x, this._origScrollPos.y);
375375
}
376376
}

0 commit comments

Comments
 (0)