diff --git a/src/main/kubeconfig-manager.ts b/src/main/kubeconfig-manager.ts index d43a8105d2..5be892fc81 100644 --- a/src/main/kubeconfig-manager.ts +++ b/src/main/kubeconfig-manager.ts @@ -9,12 +9,12 @@ import logger from "./logger"; export class KubeconfigManager { protected configDir = app.getPath("temp"); - protected tempFile: string; + protected tempFile: string = null; constructor(protected cluster: Cluster, protected contextHandler: ContextHandler, protected port: number) { } async getPath() { - if (!this.tempFile) { + if (!this.tempFile && this.tempFile !== undefined) { await this.init(); }