Sfoglia il codice sorgente

Fixes undefined exception

main
Eric Amodio 6 anni fa
parent
commit
c4d7de1978
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      src/views/gitExplorer.ts

+ 3
- 1
src/views/gitExplorer.ts Vedi File

@ -202,7 +202,9 @@ export class GitExplorer extends Disposable implements TreeDataProvider
this.setRoot(await this.getRootNode(window.activeTextEditor));
}
this._root!.refresh();
if (this._root !== undefined) {
this._root.refresh();
}
this._onDidChangeTreeData.fire();
}

Caricamento…
Annulla
Salva