mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Merge pull request #4569 from lensapp/issue-4567
Fix crash with InstallChart
This commit is contained in:
commit
f56f3be79b
@ -55,10 +55,6 @@ export class InstallChart extends Component<Props> {
|
||||
makeObservable(this);
|
||||
}
|
||||
|
||||
get values() {
|
||||
return this.chartData.values;
|
||||
}
|
||||
|
||||
get chartData() {
|
||||
return installChartStore.getData(this.tabId);
|
||||
}
|
||||
@ -135,7 +131,7 @@ export class InstallChart extends Component<Props> {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { tabId, chartData, values, versions, install } = this;
|
||||
const { tabId, chartData, versions, install } = this;
|
||||
|
||||
if (chartData?.values === undefined || !versions) {
|
||||
return <Spinner center/>;
|
||||
@ -215,7 +211,7 @@ export class InstallChart extends Component<Props> {
|
||||
/>
|
||||
<EditorPanel
|
||||
tabId={tabId}
|
||||
value={values}
|
||||
value={chartData.values}
|
||||
onChange={this.onChange}
|
||||
onError={this.onError}
|
||||
/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user