Skip to content

Commit 7281b91

Browse files
Fatimahslint
authored andcommitted
bug-fix: added missing check for custom fields
1 parent 295031e commit 7281b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/forms/widgets/custom_fields/CustomFields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class CustomFields extends Component {
8787
{fields}
8888
</AccordionField>
8989
))}
90-
{discoverFieldsSections && (
90+
{discoverFieldsSections && discoverFieldsSections.length > 0 && (
9191
<DiscoverFieldsSection
9292
templateLoaders={templateLoaders}
9393
sections={discoverFieldsSections}

0 commit comments

Comments
 (0)