Wizard: move RHEL 9 beta out of preview

This commit is contained in:
Sanne Raymaekers 2024-10-17 10:24:51 +02:00 committed by Simon Steinbeiß
parent c9e5f9630b
commit 15a7115eec

View file

@ -25,7 +25,6 @@ import {
} from '../../../../store/wizardSlice';
import isRhel from '../../../../Utilities/isRhel';
import { toMonthAndYear } from '../../../../Utilities/time';
import { useGetEnvironment } from '../../../../Utilities/useGetEnvironment';
const ReleaseSelect = () => {
// What the UI refers to as the "release" is referred to as the "distribution" in the API.
@ -35,7 +34,6 @@ const ReleaseSelect = () => {
const dispatch = useAppDispatch();
const [isOpen, setIsOpen] = useState(false);
const [showDevelopmentOptions, setShowDevelopmentOptions] = useState(false);
const { isBeta } = useGetEnvironment();
const handleSelect = (_event: React.MouseEvent, selection: Distributions) => {
dispatch(changeDistribution(selection));
@ -82,11 +80,6 @@ const ReleaseSelect = () => {
);
filteredRhel.forEach((value, key) => {
// Only show RHEL 9 beta in preview
if (key === RHEL_9_BETA && !isBeta()) {
return;
}
options.push(
<SelectOption
key={value}