Pick first helm chart from the list on load

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2021-02-16 12:48:19 +03:00
1 parent 4cf46d1778
commit 5abcf81a90
1 file changed
+2 -2
@@ -5,7 +5,7 @@ import { autobind } from "../../utils";
interface IHelmChartList {
[repo: string]: {
[name: string]: HelmChart;
[name: string]: HelmChart[];
};
}
@@ -27,7 +27,7 @@ export const helmChartsApi = {
return Object
.values(data)
.reduce((allCharts, repoCharts) => allCharts.concat(Object.values(repoCharts)), [])
.map(HelmChart.create);
.map((charts: HelmChart[]) => HelmChart.create(charts[0]));
});
},