guard against undefined arguments
This commit is contained in:
1 parent
de5d925154
commit
a302ee5d25
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user