Skip to content

Commit a397994

Browse files
committed
fix(agentmail): guard inboxIdParam remapping with operation check
1 parent b40aab3 commit a397994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/blocks/blocks/agentmail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export const AgentMailBlock: BlockConfig = {
490490
...rest
491491
} = params
492492

493-
if (inboxIdParam) {
493+
if (['get_inbox', 'update_inbox', 'delete_inbox'].includes(operation) && inboxIdParam) {
494494
rest.inboxId = inboxIdParam
495495
}
496496

0 commit comments

Comments
 (0)