diff --git a/chrome/content/zotero/preferences/preferences_cite.jsx b/chrome/content/zotero/preferences/preferences_cite.jsx index 16f358c914..ae9b538736 100644 --- a/chrome/content/zotero/preferences/preferences_cite.jsx +++ b/chrome/content/zotero/preferences/preferences_cite.jsx @@ -91,9 +91,10 @@ Zotero_Preferences.Cite = { await Zotero.Styles.init(); this.styles = Zotero.Styles.getVisible() .map((style) => { + var updated = Zotero.Date.sqlToDate(style.updated, true); return { title: style.title, - updated: Zotero.Date.sqlToDate(style.updated, true).toLocaleDateString() + updated: updated ? updated.toLocaleDateString() : "" }; });