diff --git a/www/filepicker/inner.js b/www/filepicker/inner.js index 021fa7c12..ec694c433 100644 --- a/www/filepicker/inner.js +++ b/www/filepicker/inner.js @@ -90,7 +90,7 @@ define([ // Description var text = Messages.filePicker_description; - if (types.length === 1 && types[0] !== 'file') { + if (types && types.length === 1 && types[0] !== 'file') { // Should be Templates text = Messages.selectTemplate; }