Wizard: Fix "None" options in Selects for policies and Oscap profiles

This commit is contained in:
Katarina Sieklova 2025-05-13 14:00:48 +02:00 committed by Klara Simickova
parent 50d88e5949
commit 0cfe3dde30
2 changed files with 2 additions and 2 deletions

View file

@ -287,7 +287,7 @@ const PolicySelector = () => {
} as React.CSSProperties } as React.CSSProperties
} }
> >
{policyTitle || 'Select a policy'} {policyID === undefined ? 'None' : policyTitle || 'Select a policy'}
</MenuToggle> </MenuToggle>
); );

View file

@ -329,7 +329,7 @@ const ProfileSelector = () => {
> >
<TextInputGroup isPlain> <TextInputGroup isPlain>
<TextInputGroupMain <TextInputGroupMain
value={profileID ? profileID : inputValue} value={profileID ? profileID : inputValue || 'None'}
onClick={onInputClick} onClick={onInputClick}
onChange={onTextInputChange} onChange={onTextInputChange}
autoComplete="off" autoComplete="off"