Skip to content

Commit

Permalink
Wizard: fix editing RHEL 9 beta blueprints
Browse files Browse the repository at this point in the history
It would default to RHEL 9 instead of the beta.
  • Loading branch information
croissanne committed Oct 24, 2024
1 parent c65d924 commit 493649f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Components/CreateImageWizard/utilities/requestMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
FIRST_BOOT_SERVICE_DATA,
RHEL_8,
RHEL_9,
RHEL_9_BETA,
} from '../../../constants';
import { RootState } from '../../../store';
import {
Expand Down Expand Up @@ -132,7 +133,9 @@ const convertFilesystemToPartition = (filesystem: Filesystem): Partition => {
* @param distribution blueprint distribution
*/
const getLatestRelease = (distribution: Distributions) => {
return distribution.startsWith('rhel-9')
return distribution === RHEL_9_BETA
? (RHEL_9_BETA as Distributions)
: distribution.startsWith('rhel-9')
? RHEL_9
: distribution.startsWith('rhel-8')
? RHEL_8
Expand Down

0 comments on commit 493649f

Please sign in to comment.