Skip to content

Commit 1a57af9

Browse files
dbg
1 parent 6acd0be commit 1a57af9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/src/components/Dialog.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ export class Dialog {
5151
// TODO: current widget might not be correct at this level, need to check and possibly change how we're getting this
5252
console.log("[Dialog] saveCard: props.app =", props.app);
5353

54-
// Wait for the app to not be null
55-
if (!props.app) {
56-
console.error("[Dialog] saveCard: props.app is null, cannot save notebook.");
54+
// Wait for the app shell to not be null or undefined
55+
if (!props.app.shell) {
56+
console.error("[Dialog] saveCard: App shell is not available.");
5757
return;
5858
}
5959

0 commit comments

Comments
 (0)