mirror of
https://github.com/zotero/zotero.git
synced 2026-09-14 23:21:03 +00:00
fix open child note not showing in library mode
This commit is contained in:
parent
11e57aaec6
commit
69f0ddb647
1 changed files with 4 additions and 1 deletions
|
|
@ -386,7 +386,10 @@ export class CitationDialogSearchHandler {
|
|||
for (let itemID of itemIDs) {
|
||||
let item = await Zotero.Items.getAsync(itemID);
|
||||
if (!item) continue;
|
||||
if (item && item.parentItemID) {
|
||||
// When inserting citations, tab item is a PDF, so we want to grab it's paren item.
|
||||
// When inserting notes, we want to show the actual note
|
||||
let isOpenNoteInNoteMode = this.dialogState.isAddingNote() && item.isNote();
|
||||
if (item.parentItemID && !isOpenNoteInNoteMode) {
|
||||
item = await Zotero.Items.getAsync(item.parentItemID);
|
||||
}
|
||||
items.push(item);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue