Skip to content

Commit 3868b64

Browse files
committed
fix: trigger other actions early return
fix: #333
1 parent f9af93e commit 3868b64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils/actions.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,12 @@ async function applyAction(action: ActionData, args: ActionArgs) {
196196
const item =
197197
(Zotero.Items.get(args.itemID || -1) as Zotero.Item | false) || null;
198198
// If the item is not found and the operation is not script, early return.
199-
if (action.operation !== ActionOperationTypes.script && !item) {
199+
if (
200+
![ActionOperationTypes.script, ActionOperationTypes.triggerAction].includes(
201+
action.operation,
202+
) &&
203+
!item
204+
) {
200205
return false;
201206
}
202207
const tags = action.data

0 commit comments

Comments
 (0)