From 8214076ca0a344f44c24296f02d33eede6a172db Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 28 Jan 2022 17:32:52 -0500 Subject: [PATCH] Fix install chart tab error notifcation on reconnect Signed-off-by: Sebastian Malton --- src/renderer/components/dock/install-chart/store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/dock/install-chart/store.ts b/src/renderer/components/dock/install-chart/store.ts index 6417a8fab5..e322a0ec78 100644 --- a/src/renderer/components/dock/install-chart/store.ts +++ b/src/renderer/components/dock/install-chart/store.ts @@ -3,7 +3,7 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ -import { action, makeObservable } from "mobx"; +import { action, makeObservable, when } from "mobx"; import type { TabId } from "../dock/store"; import { DockTabStorageState, DockTabStore } from "../dock-tab-store/dock-tab.store"; import { getChartDetails, getChartValues } from "../../../../common/k8s-api/endpoints/helm-charts.api"; @@ -48,6 +48,8 @@ export class InstallChartTabStore extends DockTabStore { async loadData(tabId: string) { const promises = []; + await when(() => this.isReady(tabId)); + if (!this.getData(tabId).values) { promises.push(this.loadValues(tabId)); }