Fix error if New Collection prompt is canceled

This commit is contained in:
Abe Jellinek 2022-06-09 18:32:14 -05:00
parent 7b20972c27
commit 57ab92b5b9

View file

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