mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 13:41:57 +02: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
|
* For our self defined input, we can reuse those declarations to restrict which files
|
||||||
* the user can pick from his hard drive.
|
* 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
|
// add a dot in front of the extension
|
||||||
let prefixedAllowedExtensions = validation.allowedExtensions.map((ext) => '.' + ext);
|
let prefixedAllowedExtensions = validation.allowedExtensions.map((ext) => '.' + ext);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user