Skip to content

Commit d029676

Browse files
committed
fix julia & racket kernel exports from [] to {}
1 parent 6bf9dc3 commit d029676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/lib/ws/middleware.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function powerRun_racket({ id, storeAPI, socket }) {
3838
let names = pod.children
3939
.filter(({ id }) => pods[id].type !== "DECK")
4040
.filter(({ id }) => pods[id].exports)
41-
.map(({ id }) => pods[id].exports);
41+
.map(({ id }) => Object.keys(pods[id].exports));
4242
names = [].concat(...names);
4343
let struct_codes = pod.children
4444
.filter(
@@ -125,7 +125,7 @@ function powerRun_julia({ id, storeAPI, socket }) {
125125
let names = pod.children
126126
.filter(({ id }) => pods[id].type !== "DECK")
127127
.filter(({ id }) => pods[id].exports)
128-
.map(({ id }) => pods[id].exports);
128+
.map(({ id }) => Object.keys(pods[id].exports));
129129
names = [].concat(...names);
130130
let nses = getUtilNs({ id, pods });
131131
const child_deck_nses = pods[id].children

0 commit comments

Comments
 (0)