Skip to content

Commit e4c19b2

Browse files
FisherXZclaude
andcommitted
fix(js-sdk): use undefined check when forwarding snapshot name
Truthy check silently drops name: '' — check !== undefined instead so the API can validate/reject an explicit empty string rather than the SDK quietly omitting it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ba584c1 commit e4c19b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/js-sdk/src/sandbox/sandboxApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ export class SandboxApi {
722722
},
723723
},
724724
body: {
725-
...(opts?.name && { name: opts.name }),
725+
...(opts?.name !== undefined && { name: opts.name }),
726726
},
727727
signal: config.getSignal(opts?.requestTimeoutMs),
728728
})

0 commit comments

Comments
 (0)