Skip to content

Commit 3d7537a

Browse files
committed
fix crash reported by user involving creating the menu of jupyter kernels
1 parent 848539d commit 3d7537a

File tree

1 file changed

+2
-2
lines changed
  • src/packages/frontend/frame-editors/jupyter-editor

1 file changed

+2
-2
lines changed

src/packages/frontend/frame-editors/jupyter-editor/editor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ const JUPYTER_MENUS = {
456456
icon: "dot-circle",
457457
label: ({ props }) => {
458458
const actions = props.actions.jupyter_actions;
459-
const store = actions.store;
459+
const store = actions?.store;
460460
if (!store) {
461461
return "Kernels";
462462
}
@@ -477,7 +477,7 @@ const JUPYTER_MENUS = {
477477
name: "kernels",
478478
children: ({ props }) => {
479479
const actions = props.actions.jupyter_actions;
480-
const store = actions.store;
480+
const store = actions?.store;
481481
if (!store) {
482482
return [];
483483
}

0 commit comments

Comments
 (0)