Skip to content

Commit c6ef3fd

Browse files
waleedlatif1claude
andcommitted
fix(box): use canonical param ID for file normalization in params()
The params function must reference canonical IDs (params.file), not raw subBlock IDs (uploadFile/fileRef) which are deleted after canonical transformation. Matches the Dropbox block pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 22e2ef2 commit c6ef3fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/sim/blocks/blocks/box.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,7 @@ export const BoxBlock: BlockConfig = {
273273
config: {
274274
tool: (params) => `box_${params.operation}`,
275275
params: (params) => {
276-
const normalizedFile = normalizeFileInput(params.uploadFile || params.fileRef, {
277-
single: true,
278-
})
276+
const normalizedFile = normalizeFileInput(params.file, { single: true })
279277
if (normalizedFile) {
280278
params.file = normalizedFile
281279
}

0 commit comments

Comments
 (0)