Skip to content

Commit dda8e83

Browse files
author
Ives van Hoorne
committed
Fix cameliing for standalone sandboxes
1 parent 7057b5e commit dda8e83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/app/src/sandbox/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ requirePolyfills().then(() => {
7777
window
7878
.fetch(host + `/api/v1/sandboxes/${id}`)
7979
.then(res => res.json())
80-
.then(res => camelizeKeys(res))
80+
.then(res => {
81+
const camelized = camelizeKeys(res);
82+
camelized.data.npmDependencies = res.data.npm_dependencies;
83+
84+
return camelized;
85+
})
8186
.then(x => {
8287
const mainModule = findMainModule(
8388
x.data.modules,

0 commit comments

Comments
 (0)