Skip to content

Commit 449ed27

Browse files
committed
fix(sandbox): prevent opts from clobbering fetched data in pptx addImage
1 parent 918954a commit 449ed27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/sandbox-tasks/pptx-generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const pptxGenerateTask = defineSandboxTask<SandboxTaskInput>({
5353
*/
5454
globalThis.addImage = async function addImage(slide, fileId, opts) {
5555
const data = await globalThis.getFileBase64(fileId);
56-
slide.addImage(Object.assign({ data }, opts || {}));
56+
slide.addImage(Object.assign({}, opts || {}, { data }));
5757
};
5858
`,
5959
finalize: `

0 commit comments

Comments
 (0)