Skip to content

Commit

Permalink
make some stuff optional
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Dec 6, 2023
1 parent 7b873e5 commit 27a79df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/tenant/standards/ListAppliedStandards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const ListAppliedStandards = () => {
Object.keys(standards).forEach((key) => {
const standard = standards[key]
// Check if 'Enabled' exists and the specific type is true
if (standard.Enabled && standard.Enabled[type]) {
if (standard?.Enabled && standard?.Enabled[type]) {
count++
} else if (standard[type]) {
// Check if the type exists directly under the standard
Expand Down Expand Up @@ -331,7 +331,7 @@ const ListAppliedStandards = () => {
<CCol>
<h5>Remediate</h5>
<RFFCFormSwitch
name="standards.OverrideAllTenants"
name="standards.OverrideAllTenants.remediate"
helpText={
'Exclude this standard from the All Tenants standard. This will only apply explicitly set standards to this tenant.'
}
Expand Down

0 comments on commit 27a79df

Please sign in to comment.