1
0
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:
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);