diff --git a/dashboard/src/components/modal/InstallChartModal/InstallChartModal.tsx b/dashboard/src/components/modal/InstallChartModal/InstallChartModal.tsx index 0ade0ad5..fae9f2ee 100644 --- a/dashboard/src/components/modal/InstallChartModal/InstallChartModal.tsx +++ b/dashboard/src/components/modal/InstallChartModal/InstallChartModal.tsx @@ -61,7 +61,9 @@ export const InstallChartModal = ({ }, onSuccess: (data) => { const selectedVersion = (data || []).find( - ({ version }) => version === (isUpgrade ? latestVersion : currentlyInstalledChartVersion) + ({ version }) => + version === + (isUpgrade ? latestVersion : currentlyInstalledChartVersion) ) || { version: "", repository: "" }; setSelectedVersionData(selectedVersion); @@ -249,7 +251,9 @@ export const InstallChartModal = ({ setIsLoadingDiff(true); try { const [currentVerData, selectedVerData] = await Promise.all([ - currentVersion ? fetchVersionData({ version: currentVersion }) : Promise.resolve({manifest: ''}), + currentVersion + ? fetchVersionData({ version: currentVersion }) + : Promise.resolve({ manifest: "" }), fetchVersionData({ version: selectedVersion || "", userValues }), ]); const formData = new FormData(); @@ -324,7 +328,7 @@ export const InstallChartModal = ({ setChart(releaseName)} onNamespaceInput={(namespace) => setNamespace(namespace)} /> diff --git a/dashboard/src/components/repository/ChartViewer.tsx b/dashboard/src/components/repository/ChartViewer.tsx index 9e2db562..c2c60f59 100644 --- a/dashboard/src/components/repository/ChartViewer.tsx +++ b/dashboard/src/components/repository/ChartViewer.tsx @@ -44,7 +44,7 @@ function ChartViewer({ chart }: ChartViewerProps) { {showInstallModal && ( setShowInstallModal(false)} isInstall={true} diff --git a/dashboard/src/components/revision/RevisionDetails.tsx b/dashboard/src/components/revision/RevisionDetails.tsx index 4c5599b1..eeb2e83d 100644 --- a/dashboard/src/components/revision/RevisionDetails.tsx +++ b/dashboard/src/components/revision/RevisionDetails.tsx @@ -177,7 +177,7 @@ export default function RevisionDetails({ {