Skip to content

Commit

Permalink
Browser gets stuck after selecting OCP version 4.9 (openshift-assiste…
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 authored and rawagner committed Sep 13, 2023
1 parent 243550c commit 68a7d4d
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 68a7d4d

Please sign in to comment.