From 388659108e2b70575d08dca75a717a81678ac562 Mon Sep 17 00:00:00 2001 From: Nir Parisian Date: Thu, 20 Jul 2023 19:58:51 +0300 Subject: [PATCH] missing uservalues --- .../components/modal/InstallChartModal/InstallChartModal.tsx | 3 +-- .../components/modal/InstallChartModal/UserDefinedValues.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dashboard/src/components/modal/InstallChartModal/InstallChartModal.tsx b/dashboard/src/components/modal/InstallChartModal/InstallChartModal.tsx index f2b2831f..1fb4a5e0 100644 --- a/dashboard/src/components/modal/InstallChartModal/InstallChartModal.tsx +++ b/dashboard/src/components/modal/InstallChartModal/InstallChartModal.tsx @@ -121,7 +121,6 @@ export const InstallChartModal = ({ // userDefinedValue: userValues, // for key only revision: revision ? parseInt(revision) : undefined, options: { - enabled: !isInstall, onSuccess: (data: string) => { if (data) { fetchDiff({ userValues: "" }); @@ -262,7 +261,7 @@ export const InstallChartModal = ({ try { const [currentVerData, selectedVerData] = await Promise.all([ currentVersion - ? fetchVersionData({ version: currentVersion }) + ? fetchVersionData({ version: currentVersion, userValues }) : Promise.resolve({ manifest: "" }), fetchVersionData({ version: selectedVersion || "", userValues }), ]); diff --git a/dashboard/src/components/modal/InstallChartModal/UserDefinedValues.tsx b/dashboard/src/components/modal/InstallChartModal/UserDefinedValues.tsx index 8ec64b92..9b4b27f0 100644 --- a/dashboard/src/components/modal/InstallChartModal/UserDefinedValues.tsx +++ b/dashboard/src/components/modal/InstallChartModal/UserDefinedValues.tsx @@ -21,7 +21,7 @@ export const UserDefinedValues = ({ timeoutRef.current = setTimeout(() => { setValues(localState); clearTimeout(timeoutRef.current); - }, 400); + }, 800); } }, [localState]);