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:
parent
4cf46d1778
commit
5abcf81a90
@ -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]));
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user