mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Fix error if New Collection prompt is canceled
This commit is contained in:
parent
7b20972c27
commit
57ab92b5b9
1 changed files with 3 additions and 0 deletions
|
|
@ -3507,6 +3507,9 @@ var ZoteroPane = new function()
|
|||
throw new Error('collection must be null if createNew is true');
|
||||
}
|
||||
let id = await this.newCollection();
|
||||
if (!id) {
|
||||
return;
|
||||
}
|
||||
collection = Zotero.Collections.get(id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue