Fix item tree custom dataProvider break interface

This commit is contained in:
windingwind 2024-11-05 15:15:16 +00:00 committed by Dan Stillman
parent 30024487f3
commit 0db1bae009

View file

@ -217,7 +217,12 @@ class ItemTreeManager {
getCustomCellData(item, dataKey) {
const options = this._customColumns[dataKey];
if (options && options.dataProvider) {
return options.dataProvider(item, dataKey);
try {
return options.dataProvider(item, dataKey);
}
catch (e) {
Zotero.logError(e);
}
}
return "";
}