Update Notes section on add (#4554)

This commit is contained in:
Abe Jellinek 2024-08-12 13:06:09 -06:00 committed by GitHub
parent b1b06cedde
commit 98b3745a20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}
}