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

Commit45094d9

Browse files
Backport PR#7567: Fix undefined error when checkpoints is empty (#7568)
Co-authored-by: J. David Ibáñez <jdavid.ibp@gmail.com>
1 parentedfa5e2 commit45094d9

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