From 52e8d65f4c70820a50467cf1080a6f752d851d54 Mon Sep 17 00:00:00 2001 From: Montse Ortega Date: Fri, 28 Jul 2023 07:35:12 +0200 Subject: [PATCH] Browser gets stuck after selecting OCP version 4.9 --- .../clusterConfiguration/CpuArchitectureDropdown.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx b/libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx index e63ba60a6f..f4ee839f7c 100644 --- a/libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx +++ b/libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx @@ -109,21 +109,14 @@ const CpuArchitectureDropdown = ({ !isSelectedCpuArchitectureSupported && selectedCpuArchitecture !== getDefaultCpuArchitecture() ) { - setValue(getDefaultCpuArchitecture()); setCurrentCpuArch(architectureData[getDefaultCpuArchitecture()].label); setOpen(false); } if (prevVersionRef.current !== openshiftVersion) { prevVersionRef.current = openshiftVersion; } - }, [ - openshiftVersion, - setValue, - setOpen, - cpuArchitectures, - setCurrentCpuArch, - selectedCpuArchitecture, - ]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [openshiftVersion, selectedCpuArchitecture]); const toggle = React.useMemo( () => (