mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
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>
This commit is contained in:
@@ -273,9 +273,7 @@ export const BoxBlock: BlockConfig = {
|
||||
config: {
|
||||
tool: (params) => `box_${params.operation}`,
|
||||
params: (params) => {
|
||||
const normalizedFile = normalizeFileInput(params.uploadFile || params.fileRef, {
|
||||
single: true,
|
||||
})
|
||||
const normalizedFile = normalizeFileInput(params.file, { single: true })
|
||||
if (normalizedFile) {
|
||||
params.file = normalizedFile
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user