diff --git a/src/main/views/viewManager.ts b/src/main/views/viewManager.ts index 0ed73284..c55160f9 100644 --- a/src/main/views/viewManager.ts +++ b/src/main/views/viewManager.ts @@ -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);