mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
fix length of undefined bug in fineuploadeer
This commit is contained in:
parent
c5ef3cacd5
commit
6c8135d6ac
@ -211,7 +211,7 @@ let FileDragAndDrop = React.createClass({
|
||||
* For our self defined input, we can reuse those declarations to restrict which files
|
||||
* the user can pick from his hard drive.
|
||||
*/
|
||||
if(validation && validation.allowedExtensions.length > 0) {
|
||||
if(validation && validation.allowedExtensions && validation.allowedExtensions.length > 0) {
|
||||
// add a dot in front of the extension
|
||||
let prefixedAllowedExtensions = validation.allowedExtensions.map((ext) => '.' + ext);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user