[MM-49690] Set currentView to undefined instead of using delete (#2522)

This commit is contained in:
Devin Binnie
2023-01-27 14:32:48 -05:00
committed by GitHub
parent b7c9d3527d
commit 09ecc7430f

View File

@@ -180,7 +180,7 @@ export class ViewManager {
if ((focusedTuple && closed.has(focusedTuple)) || (this.currentView && this.closedViews.has(this.currentView))) {
if (configServers.length) {
delete this.currentView;
this.currentView = undefined;
this.showInitial();
} else {
this.mainWindow.webContents.send(SET_ACTIVE_VIEW);