mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix crash in UpgradeChart when upgrading fails
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
87b8b241ff
commit
bcd889999d
@ -58,7 +58,11 @@ export class NonInjectedUpgradeChart extends React.Component<UpgradeChartProps &
|
|||||||
),
|
),
|
||||||
reaction(
|
reaction(
|
||||||
() => this.release?.getRevision(),
|
() => this.release?.getRevision(),
|
||||||
() => this.reloadValues(),
|
() => {
|
||||||
|
if (this.release) {
|
||||||
|
this.props.upgradeChartTabStore.reloadValues(this.props.tab.id);
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
fireImmediately: true,
|
fireImmediately: true,
|
||||||
},
|
},
|
||||||
@ -82,10 +86,6 @@ export class NonInjectedUpgradeChart extends React.Component<UpgradeChartProps &
|
|||||||
return this.props.upgradeChartTabStore.values.getData(this.tabId);
|
return this.props.upgradeChartTabStore.values.getData(this.tabId);
|
||||||
}
|
}
|
||||||
|
|
||||||
async reloadValues() {
|
|
||||||
this.props.upgradeChartTabStore.reloadValues(this.props.tab.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
async reloadVersions(release: HelmRelease | null | undefined) {
|
async reloadVersions(release: HelmRelease | null | undefined) {
|
||||||
if (!release) {
|
if (!release) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user