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( () => (