From d93055760c72ec8cf555b023a281d3d980b68a26 Mon Sep 17 00:00:00 2001 From: Karolina Przerwa Date: Fri, 2 Aug 2024 17:22:49 +0200 Subject: [PATCH] custom_fields: display section by default --- src/lib/forms/widgets/custom_fields/CustomFields.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/forms/widgets/custom_fields/CustomFields.js b/src/lib/forms/widgets/custom_fields/CustomFields.js index 44680c8e..abe69417 100644 --- a/src/lib/forms/widgets/custom_fields/CustomFields.js +++ b/src/lib/forms/widgets/custom_fields/CustomFields.js @@ -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 ? (