You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you using the latest Zotero and the latest plugin?
I have confirmed I'm using the latest Zotero and the latest plugin
Environment
OS: WIN 10 X64
Zotero Version: 7.0.0-beta.77+adaa61f2c(64-bit)
Plugin Version: 1.0.0-beta.39
Describe the bug
see the code from line 195 in actions.ts.
async function applyAction(action: ActionData, args: ActionArgs) {
const item =
(Zotero.Items.get(args.itemID || -1) as Zotero.Item | false) || null;
// If the item is not found and the operation is not script, early return.
if (action.operation !== ActionOperationTypes.script && !item) {
return false;
}
// if operation == script and item == null ,here dont return false.
// please check it is right or not.
Debug Output
I always get item == null in my script.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
I have debugged the codes, find out the dispatchActionByKey is called twice.
// await addon.api.actionManager.dispatchActionByKey(key, {
// itemIDs,
// collectionID: collection?.id,
// triggerType: "menu",
// });
// Trigger action for each item
for (const itemID of itemIDs) {
await addon.api.actionManager.dispatchActionByKey(key, {
itemID,
collectionID: collection?.id,
triggerType: "menu",
});
}
Is there an existing issue for this?
Are you using the latest Zotero and the latest plugin?
Environment
Describe the bug
see the code from line 195 in actions.ts.
async function applyAction(action: ActionData, args: ActionArgs) {
const item =
(Zotero.Items.get(args.itemID || -1) as Zotero.Item | false) || null;
// If the item is not found and the operation is not script, early return.
if (action.operation !== ActionOperationTypes.script && !item) {
return false;
}
// if operation == script and item == null ,here dont return false.
// please check it is right or not.
Debug Output
I always get item == null in my script.
Anything else?
No response
The text was updated successfully, but these errors were encountered: