Bump ogre-tools and adapt to breaking changes (#6481)

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-tursoandJanne Savolainen authored and GitHub committed 2022-10-27 12:06:03 +03:00
1 parent 2403e6d0cb
commit 646e953d47
12 files changed
+133 -108

No files matched your search

@@ -12,22 +12,29 @@ const readmeOfSelectedHelmChartInjectable = getInjectable({
id: "readme-of-selected-helm-chart",
instantiate: (di, chart: HelmChart) => {
const selection = di.inject(helmChartDetailsVersionSelectionInjectable, chart);
const selection = di.inject(
helmChartDetailsVersionSelectionInjectable,
chart,
);
const requestHelmChartReadme = di.inject(requestHelmChartReadmeInjectable);
return asyncComputed(async () => {
const chartVersion = selection.value.get();
return asyncComputed({
getValueFromObservedPromise: async () => {
const chartVersion = selection.value.get();
if (!chartVersion) {
return "";
}
if (!chartVersion) {
return "";
}
return await requestHelmChartReadme(
chartVersion.getRepository(),
chartVersion.getName(),
chartVersion.getVersion(),
);
}, "");
return await requestHelmChartReadme(
chartVersion.getRepository(),
chartVersion.getName(),
chartVersion.getVersion(),
);
},
valueWhenPending: "",
});
},
lifecycle: lifecycleEnum.keyedSingleton({