Don't wait for transaction when selecting item
This commit is contained in:
parent
7657c9044d
commit
6c1ba0aeee
1 changed files with 0 additions and 4 deletions
|
@ -1378,10 +1378,6 @@ var ZoteroPane = new function()
|
||||||
*/
|
*/
|
||||||
this.itemSelected = function (event) {
|
this.itemSelected = function (event) {
|
||||||
return Zotero.Promise.coroutine(function* () {
|
return Zotero.Promise.coroutine(function* () {
|
||||||
if (Zotero.DB.inTransaction()) {
|
|
||||||
yield Zotero.DB.waitForTransaction();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Don't select item until items list has loaded
|
// Don't select item until items list has loaded
|
||||||
//
|
//
|
||||||
// This avoids an error if New Item is used while the pane is first loading.
|
// This avoids an error if New Item is used while the pane is first loading.
|
||||||
|
|
Loading…
Add table
Reference in a new issue