mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix install chart tab error notifcation on reconnect
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
bc24aaa5ac
commit
8214076ca0
@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* 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 type { TabId } from "../dock/store";
|
||||||
import { DockTabStorageState, DockTabStore } from "../dock-tab-store/dock-tab.store";
|
import { DockTabStorageState, DockTabStore } from "../dock-tab-store/dock-tab.store";
|
||||||
import { getChartDetails, getChartValues } from "../../../../common/k8s-api/endpoints/helm-charts.api";
|
import { getChartDetails, getChartValues } from "../../../../common/k8s-api/endpoints/helm-charts.api";
|
||||||
@ -48,6 +48,8 @@ export class InstallChartTabStore extends DockTabStore<IChartInstallData> {
|
|||||||
async loadData(tabId: string) {
|
async loadData(tabId: string) {
|
||||||
const promises = [];
|
const promises = [];
|
||||||
|
|
||||||
|
await when(() => this.isReady(tabId));
|
||||||
|
|
||||||
if (!this.getData(tabId).values) {
|
if (!this.getData(tabId).values) {
|
||||||
promises.push(this.loadValues(tabId));
|
promises.push(this.loadValues(tabId));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user