1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 00:28:00 +02:00

fix length of undefined bug in fineuploadeer

This commit is contained in:
Tim Daubenschütz 2015-09-15 13:13:58 +02:00
parent c5ef3cacd5
commit 6c8135d6ac

View File

@ -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);