Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 22c3c6c

Browse files
authored
fix: resolve truncation issue when exporting transcripts (#50)
1 parent b65e553 commit 22c3c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/components/modals/ExportChoice.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ExportChoice extends React.Component<Props, ComponentState> {
6464
transcripts.forEach(t => {
6565
const content = JSON.stringify(t.activities)
6666
// const blob = new Blob([JSON.stringify(t.activities)], { type: "text/plain;charset=utf-8" })
67-
zip.addFile(`${CLM.ModelUtils.generateGUID()}.transcript`, Buffer.alloc(content.length, content))
67+
zip.addFile(`${CLM.ModelUtils.generateGUID()}.transcript`, Buffer.from(content))
6868
})
6969
const zipBuffer = zip.toBuffer()
7070
const zipBlob = new Blob([zipBuffer])

0 commit comments

Comments
 (0)