From 3b1cb2b9c2fc8540878743de17b59f309ff9a0f7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 21 Jul 2024 05:57:17 -0400 Subject: [PATCH] Avoid error if item is modified before collections pane is loaded E.g., during Extra field migration at startup --- chrome/content/zotero/elements/itemPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/itemPane.js b/chrome/content/zotero/elements/itemPane.js index 7a7f333213..a430e1d907 100644 --- a/chrome/content/zotero/elements/itemPane.js +++ b/chrome/content/zotero/elements/itemPane.js @@ -134,7 +134,7 @@ notify(action, type) { if (type == 'item' && action == 'modify') { - if (this.collectionTreeRow.isFeedsOrFeed()) { + if (this.collectionTreeRow && this.collectionTreeRow.isFeedsOrFeed()) { this.updateReadLabel(); } }