From 672488d3184ca286e2be0eebb8bd85fa7e36001f Mon Sep 17 00:00:00 2001 From: Fatimah Date: Thu, 22 Feb 2024 16:22:56 +0100 Subject: [PATCH] custom_ fields: added missing check --- src/lib/forms/widgets/custom_fields/CustomFields.js | 2 +- src/lib/forms/widgets/select/AutocompleteDropdown.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/forms/widgets/custom_fields/CustomFields.js b/src/lib/forms/widgets/custom_fields/CustomFields.js index 04c4d4b1..19a02ed8 100644 --- a/src/lib/forms/widgets/custom_fields/CustomFields.js +++ b/src/lib/forms/widgets/custom_fields/CustomFields.js @@ -87,7 +87,7 @@ export class CustomFields extends Component { {fields} ))} - {discoverFieldsSections && ( + {discoverFieldsSections && discoverFieldsSections.length > 0 && ( - {({ form: { values } }) => { return ( @@ -31,6 +30,7 @@ export default class AutocompleteDropdown extends Component { clearable={clearable} required={required} fieldPath={fieldPath} + label={} multiple={multiple} noQueryMessage={placeholder} placeholder={placeholder}