Skip to content

Commit c1835ad

Browse files
committed
exclude switches from addedComponentsFilled check
1 parent 1b9ae2a commit c1835ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CippStandards/CippStandardAccordion.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const CippStandardAccordion = ({
9292

9393
const addedComponentsFilled =
9494
standard.addedComponent?.every((component) => {
95-
const isRequired = component.required !== false;
95+
const isRequired = component.required !== false && component.type !== "switch";
9696
if (!isRequired) return true;
9797
return !!_.get(watchedValues, `${standardName}.${component.name}`);
9898
}) ?? true;

0 commit comments

Comments
 (0)