diff --git a/chrome/content/zotero/elements/styleConfigurator.js b/chrome/content/zotero/elements/styleConfigurator.js index 8269453b67..79836f5806 100644 --- a/chrome/content/zotero/elements/styleConfigurator.js +++ b/chrome/content/zotero/elements/styleConfigurator.js @@ -135,13 +135,15 @@ } set value(val) { - try { - // eslint-disable-next-line no-new - new Intl.Locale(val); - } - catch (e) { - Zotero.logError(e); - val = ''; + if (val) { + try { + // eslint-disable-next-line no-new + new Intl.Locale(val); + } + catch (e) { + Zotero.logError(e); + val = ''; + } } val = Zotero.Styles.resolveLocale(val);