Skip to content

Commit

Permalink
custom_ fields: added missing check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah committed Feb 22, 2024
1 parent 295031e commit 672488d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/forms/widgets/custom_fields/CustomFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class CustomFields extends Component {
{fields}
</AccordionField>
))}
{discoverFieldsSections && (
{discoverFieldsSections && discoverFieldsSections.length > 0 && (

Check failure on line 90 in src/lib/forms/widgets/custom_fields/CustomFields.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Delete `·`

Check failure on line 90 in src/lib/forms/widgets/custom_fields/CustomFields.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Delete `·`
<DiscoverFieldsSection
templateLoaders={templateLoaders}
sections={discoverFieldsSections}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/widgets/select/AutocompleteDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export default class AutocompleteDropdown extends Component {
} = this.props;
return (
<>
<FieldLabel htmlFor={fieldPath} icon={icon} label={label} />
<Field name={fieldPath}>
{({ form: { values } }) => {
return (
<RemoteSelectField
clearable={clearable}
required={required}
fieldPath={fieldPath}
label={<FieldLabel htmlFor={fieldPath} icon={icon} label={label} />}
multiple={multiple}
noQueryMessage={placeholder}
placeholder={placeholder}
Expand Down

0 comments on commit 672488d

Please sign in to comment.