Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b3b5b3

Browse files
authored
Fix undefined error when checkpoints is empty (#7567)
1 parent1f0ab83 commit8b3b5b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/notebook-extension/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const checkpoints: JupyterFrontEndPlugin<void> = {
124124
context?.fileChanged.connect(onChange);
125125

126126
constcheckpoints=awaitcontext?.listCheckpoints();
127-
if(!checkpoints){
127+
if(!checkpoints||!checkpoints.length){
128128
return;
129129
}
130130
constcheckpoint=checkpoints[checkpoints.length-1];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp