mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix crash when upgrading release (#6626)
* Fix crash when upgrading release Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix crash when upgrading helm releases - Fixes not being able to upgrade helm releases as well. Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix tests Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix test failures Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
1354fa66a5
commit
573cd83bfb
16 files changed
+146
-68
No files matched your search
@@ -14,10 +14,7 @@ const helmChartVersionsInjectable = getInjectable({
|
||||
|
||||
instantiate: (di, release) => {
|
||||
const helmCharts = di.inject(helmChartsInjectable);
|
||||
|
||||
const requestVersionsOfHelmChart = di.inject(
|
||||
requestVersionsOfHelmChartInjectable,
|
||||
);
|
||||
const requestVersionsOfHelmChart = di.inject(requestVersionsOfHelmChartInjectable);
|
||||
|
||||
return asyncComputed({
|
||||
getValueFromObservedPromise: async () => {
|
||||
@@ -25,8 +22,6 @@ const helmChartVersionsInjectable = getInjectable({
|
||||
|
||||
return requestVersionsOfHelmChart(release, helmCharts.value.get());
|
||||
},
|
||||
|
||||
valueWhenPending: [],
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user