Skip to content

Commit

Permalink
custom_fields: display section by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Aug 5, 2024
1 parent 5e06489 commit d930557
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/forms/widgets/custom_fields/CustomFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ export class CustomFields extends Component {
<>
{sections &&
sections.map((section) => {
const { fields, paths, displaySection, section: sectionName } = section;
const {
fields,
paths,
displaySection = true,
section: sectionName,
} = section;
return displaySection ? (
<AccordionField
key={`section-${sectionName}`}
Expand Down

0 comments on commit d930557

Please sign in to comment.