wizard/compliance: re-enable stig profiles

The stig profiles have been fixed downstream, so we can re-enable these.
This commit is contained in:
Gianluca Zuccarelli 2024-07-03 17:49:10 +01:00 committed by Klara Simickova
parent 93dcff268b
commit f0d723686e

View file

@ -208,26 +208,15 @@ const ProfileSelector = () => {
onFilter={(_event, value) => {
if (profiles) {
return [<OScapNoneOption key="oscap-none-option" />].concat(
profiles
// stig and stig_gui don't boot at the moment,
// so we should filter them out
.filter((profile_id) => {
const brokenProfiles = [
'xccdf_org.ssgproject.content_profile_stig',
'xccdf_org.ssgproject.content_profile_stig_gui',
];
return !brokenProfiles.includes(profile_id);
})
.map((profile_id, index) => {
return (
<OScapSelectOption
key={index}
profile_id={profile_id}
filter={value}
/>
);
})
profiles.map((profile_id, index) => {
return (
<OScapSelectOption
key={index}
profile_id={profile_id}
filter={value}
/>
);
})
);
}
}}