Skip to content

Commit 12e904e

Browse files
committed
IT WORKS NOW YIPPPEEEW@!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1 parent e552213 commit 12e904e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/project-fetcher-hoc.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,12 @@ const ProjectFetcherHOC = function (WrappedComponent) {
287287
zip.file("project.json", JSON.stringify(json));
288288

289289
for (const asset of project.assets) {
290-
zip.file(asset.name, asset.data);
290+
zip.file(asset.id, new Uint8Array(asset.buffer.data).buffer);
291291
}
292292

293-
return zip.generateAsync({ type: "arraybuffer" });
293+
const arrayBuffer = await zip.generateAsync({ type: "arraybuffer" });
294+
295+
return arrayBuffer
294296
})
295297
.then(buffer => ({ data: buffer }))
296298
.catch(error => {

0 commit comments

Comments
 (0)