Fix error if New Collection prompt is canceled
This commit is contained in:
parent
3fb9e2162e
commit
48ad6dcb99
1 changed files with 3 additions and 0 deletions
|
@ -3498,6 +3498,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