Skip to content

Commit

Permalink
Grouping Field shouldn't override it's children's visibility property (
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmale authored Aug 14, 2023
1 parent ae36707 commit a307698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/encounter/ohri-encounter-form.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export const OHRIEncounterForm: React.FC<OHRIEncounterFormProps> = ({
node.value.isHidden = isHidden;
if (type == 'field' && node.value?.questions?.length) {
node.value?.questions.forEach(question => {
question.isHidden = isHidden;
question.isParentHidden = isHidden;
});
}
// cascade visibility
Expand Down

0 comments on commit a307698

Please sign in to comment.