From a302ee5d25d4cadf6e24eade0ac149d1bca4a32a Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 8 Sep 2017 17:39:41 +0200 Subject: [PATCH] guard against undefined arguments --- www/filepicker/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }