1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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 2021-02-16 12:48:19 +03:00
parent 4cf46d1778
commit 5abcf81a90

View File

@ -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]));
});
},