Skip to content

Commit

Permalink
Browser gets stuck after selecting OCP version 4.9 (#2281)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 authored Jul 30, 2023
1 parent c5be684 commit 634bd6f
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
() => (
Expand Down

0 comments on commit 634bd6f

Please sign in to comment.