1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix: fetching values from both install and upgrade views - develop [R8S-368] (#820)

This commit is contained in:
Steven Kang 2025-06-24 15:46:10 +12:00 committed by GitHub
parent d51e9205d9
commit c897baad20
7 changed files with 111 additions and 45 deletions

View file

@ -10,12 +10,15 @@ interface HelmSearch {
}
interface Entries {
[key: string]: { version: string }[];
[key: string]: { version: string; appVersion: string }[];
}
export interface ChartVersion {
Chart?: string;
Repo: string;
Label?: string;
Version: string;
AppVersion?: string;
}
/**
@ -77,8 +80,10 @@ async function getSearchHelmRepo(
const versions = data.entries[chart];
return (
versions?.map((v) => ({
Chart: chart,
Repo: repo,
Version: v.version,
AppVersion: v.appVersion,
})) ?? []
);
} catch (err) {