From 98b3745a20dae70ef08a027e161c0651b3deb563 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 12 Aug 2024 13:06:09 -0600 Subject: [PATCH] Update Notes section on add (#4554) --- chrome/content/zotero/elements/notesBox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/notesBox.js b/chrome/content/zotero/elements/notesBox.js index c2db96afb6..eb6b8c45db 100644 --- a/chrome/content/zotero/elements/notesBox.js +++ b/chrome/content/zotero/elements/notesBox.js @@ -68,7 +68,8 @@ import { getCSSItemTypeIcon } from 'components/icons'; } notify(event, type, ids, _extraData) { - if (['modify', 'delete'].includes(event) && ids.some(id => this._noteIDs.includes(id))) { + if (['modify', 'delete'].includes(event) + && ids.some(id => this._item?.id === id || this._noteIDs.includes(id))) { this._forceRenderAll(); } }