Merge branch 'MDL-82181-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -55,7 +55,8 @@ export default class MediaImage {
|
||||
&& (typeof options !== 'undefined')
|
||||
&& Object.keys(options.repositories).length > 0;
|
||||
// Indicates whether the drop zone area can be shown.
|
||||
this.canShowDropZone = Object.values(options.repositories).some(repository => repository.type === 'upload');
|
||||
this.canShowDropZone = (typeof options !== 'undefined') &&
|
||||
Object.values(options.repositories).some(repository => repository.type === 'upload');
|
||||
|
||||
this.editor = editor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user