Skip to content

Commit

Permalink
Don't break tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed May 28, 2024
1 parent 11e4a08 commit 1fbcd35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chrome/content/zotero/elements/itemPaneSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ class ItemPaneSectionElementBase extends XULElementBase {
* @returns {boolean}
*/
_isAlreadyRendered(type = "sync") {
let key = `_${type}RenderItemID`;
let key = `_${type}RenderDependencies`;
let pendingKey = `_${type}RenderPending`;
let itemIDKey = `_${type}RenderItemID`;

let oldDependencies = this[key];
let newDependencies = this._renderDependencies;
Expand All @@ -144,6 +145,7 @@ class ItemPaneSectionElementBase extends XULElementBase {
}
this[key] = newDependencies;
this[pendingKey] = false;
this[itemIDKey] = this.item?.id;
return false;
}

Expand Down

0 comments on commit 1fbcd35

Please sign in to comment.