Fix #28961 - "Report issues" failing when no themes are installed

This commit is contained in:
Rob Lourens 2017-06-19 11:57:04 -07:00
parent 0423761713
commit 653256412d

View file

@ -845,8 +845,8 @@ Steps to Reproduce:
return onlyTheme ? 'themes' : 'nonThemes';
});
const themeExclusionStr = themes.length ? `\n(${themes.length} theme extensions excluded)` : '';
extensions = nonThemes;
const themeExclusionStr = (themes && themes.length) ? `\n(${themes.length} theme extensions excluded)` : '';
extensions = nonThemes || [];
if (!extensions.length) {
return 'none' + themeExclusionStr;