Fix error loading trash containing collection if bidi.browser.ui == true

https://forums.zotero.org/discussion/116980/zotero-7-0-1-center-right-panes-stop-displaying-items
This commit is contained in:
Dan Stillman 2024-08-18 01:46:10 -04:00
parent d6c78336da
commit cc10987dee

View file

@ -424,7 +424,11 @@ Zotero.ItemFields = new function() {
* @returns {'auto' | 'ltr' | 'rtl'}
*/
this.getDirection = function (itemTypeID, field, itemLanguage) {
// Primary fields: follow app locale
// Collection in trash
if (!itemTypeID) {
return Zotero.dir;
}
// Date fields: follow app locale
switch (field) {
case 'dateAdded':
case 'dateModified':