Skip to content

Commit

Permalink
BUGFIX: Disable asset search through asset editor when media browser …
Browse files Browse the repository at this point in the history
…is disabled
  • Loading branch information
grebaldi committed Jun 23, 2023
1 parent 3d0533c commit f37bb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/neos-ui-editors/src/Editors/AssetEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default class AssetEditor extends PureComponent {
<SelectBox
optionValueField="identifier"
loadingLabel={this.props.i18nRegistry.translate('Neos.Neos:Main:loading')}
displaySearchBox={true}
displaySearchBox={this.isFeatureEnabled('mediaBrowser')}
ListPreviewElement={AssetOption}
placeholder={this.props.i18nRegistry.translate(this.props.placeholder)}
options={this.props.value ? this.state.options : this.state.searchOptions}
Expand All @@ -265,7 +265,7 @@ export default class AssetEditor extends PureComponent {
dndType={dndTypes.MULTISELECT}
optionValueField="identifier"
loadingLabel={this.props.i18nRegistry.translate('Neos.Neos:Main:loading')}
displaySearchBox={true}
displaySearchBox={this.isFeatureEnabled('mediaBrowser')}
ListPreviewElement={AssetOption}
placeholder={this.props.i18nRegistry.translate(this.props.placeholder)}
options={this.state.options || []}
Expand Down

0 comments on commit f37bb20

Please sign in to comment.