Use current collection when adding items (#5598)

This commit is contained in:
Tom Najdek 2025-10-27 11:53:16 +01:00
parent 59a789c750
commit 7aefa6d9ee
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

View file

@ -4378,7 +4378,7 @@ var ZoteroPane = new function () {
}
// Only allow targets within the current library for now
// TODO: Come back to this once we support copying items between libraries from the Add to Collection menu
let id = await this.newCollection();
let id = await this.newCollection(this.getSelectedCollection()?.key);
if (!id) {
return;
}