File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/neos-ui-editors/src/Editors/Image Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -216,11 +216,10 @@ export default class ImageEditor extends Component {
216
216
217
217
handleChooseFile = ( ) => {
218
218
const { secondaryEditorsRegistry, options} = this . props ;
219
- const { component : AssetUploadScreen } = secondaryEditorsRegistry . get ( 'Neos.Neos/Inspector/Secondary/Editors/AssetUploadScreen' ) ;
220
-
221
- if ( AssetUploadScreen ) {
219
+ if ( secondaryEditorsRegistry . get ( 'Neos.Neos/Inspector/Secondary/Editors/AssetUploadScreen' ) ) {
222
220
// set media type constraint to "image/*" if it is not explicitly specified via options.constraints.mediaTypes
223
221
const constraints = { ...options . constraints , mediaTypes : ( options . constraints && options . constraints . mediaTypes ) || [ 'image/*' ] } ;
222
+ const { component : AssetUploadScreen } = secondaryEditorsRegistry . get ( 'Neos.Neos/Inspector/Secondary/Editors/AssetUploadScreen' ) ;
224
223
this . props . renderSecondaryInspector ( 'IMAGE_UPLOAD_MEDIA' , ( ) => < AssetUploadScreen type = "images" constraints = { constraints } onComplete = { this . afterUpload } /> ) ;
225
224
} else {
226
225
this . previewScreen . chooseFromLocalFileSystem ( ) ;
You can’t perform that action at this time.
0 commit comments