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');
|
throw new Error('collection must be null if createNew is true');
|
||||||
}
|
}
|
||||||
let id = await this.newCollection();
|
let id = await this.newCollection();
|
||||||
|
if (!id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
collection = Zotero.Collections.get(id);
|
collection = Zotero.Collections.get(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue