Skip to content

Commit 807682b

Browse files
dbg
1 parent 4a2c407 commit 807682b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/src/components/Dialog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { JupyterLiteServer } from '@jupyterlite/server';
77
export interface DialogProps {
88
closeDialog: () => void;
99
serviceContainer: ServiceContainer;
10-
app?: JupyterLiteServer;
10+
app: JupyterLiteServer;
1111
}
1212

1313
export class Dialog {
@@ -48,7 +48,7 @@ export class Dialog {
4848
// create an arrow function that calls the save method on the serviceContainer but first iterates over all cells and gathers their code content if they are code cells
4949
async () => {
5050
// TODO: current widget might not be correct at this level, need to check and possibly change how we're getting this
51-
const notebook = (props.app?.shell as { currentWidget?: unknown })?.currentWidget as NotebookPanel | null;
51+
const notebook = props.app.shell.currentWidget as NotebookPanel | null;
5252
var allCellContent : string = '';
5353

5454
console.log("[Dialog] saveCard: Saving notebook content...");

0 commit comments

Comments
 (0)