diff --git a/frontend/src/API/releases.ts b/frontend/src/API/releases.ts index 4e421d0..4005355 100644 --- a/frontend/src/API/releases.ts +++ b/frontend/src/API/releases.ts @@ -65,15 +65,14 @@ export function useGetReleaseManifest({ }: { namespace: string; chartName: string; - options?: UseQueryOptions; + options?: UseQueryOptions; }) { - return useQuery({ + return useQuery({ queryKey: ["manifest", namespace, chartName], queryFn: () => - apiService.fetchWithSafeDefaults({ - url: `/api/helm/releases/${namespace}/${chartName}/manifests`, - fallback: [], - }), + apiService.fetchWithDefaults( + `/api/helm/releases/${namespace}/${chartName}/manifests` + ), ...(options ?? {}), }); } diff --git a/frontend/src/components/modal/InstallChartModal/InstallReleaseChartModal.tsx b/frontend/src/components/modal/InstallChartModal/InstallReleaseChartModal.tsx index 213592a..8c420c0 100644 --- a/frontend/src/components/modal/InstallChartModal/InstallReleaseChartModal.tsx +++ b/frontend/src/components/modal/InstallChartModal/InstallReleaseChartModal.tsx @@ -143,7 +143,7 @@ export const InstallReleaseChartModal = ({ } = useDiffData({ selectedRepo, versionsError: versionsError as unknown as string, // TODO fix it - currentVerManifest: currentVerManifest as unknown as string, // TODO fix it + currentVerManifest: currentVerManifest ?? "", selectedVerData, chart: chartAddress, });