Fix item tree custom dataProvider break interface
This commit is contained in:
parent
30024487f3
commit
0db1bae009
1 changed files with 6 additions and 1 deletions
|
@ -217,7 +217,12 @@ class ItemTreeManager {
|
||||||
getCustomCellData(item, dataKey) {
|
getCustomCellData(item, dataKey) {
|
||||||
const options = this._customColumns[dataKey];
|
const options = this._customColumns[dataKey];
|
||||||
if (options && options.dataProvider) {
|
if (options && options.dataProvider) {
|
||||||
return options.dataProvider(item, dataKey);
|
try {
|
||||||
|
return options.dataProvider(item, dataKey);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
Zotero.logError(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue