Wizard: Add rhel9 query parameter

We've been previously setting RHEL 9 as default, meaning there was no specific quer parameter for it.
This commit is contained in:
regexowl 2025-06-19 13:52:44 +02:00 committed by Klara Simickova
parent 5545ce4027
commit cdd10a01ff

View file

@ -67,6 +67,7 @@ import {
AARCH64,
CENTOS_9,
AMPLITUDE_MODULE_NAME,
RHEL_9,
} from '../../constants';
import { useAppDispatch, useAppSelector } from '../../store/hooks';
import './CreateImageWizard.scss';
@ -210,6 +211,9 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
if (searchParams.get('release') === 'rhel8') {
dispatch(changeDistribution(RHEL_8));
}
if (searchParams.get('release') === 'rhel9') {
dispatch(changeDistribution(RHEL_9));
}
if (searchParams.get('release') === 'rhel10beta') {
dispatch(changeDistribution(RHEL_10_BETA));
}