guard against undefined arguments
This commit is contained in:
parent
de5d925154
commit
a302ee5d25
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user