Skip to content

Commit f27a88a

Browse files
authored
Fix creating a new notebook (#60)
1 parent b8b4f14 commit f27a88a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class FileSystemDrive implements Contents.IDrive {
160160
parentPath,
161161
type === 'directory' ? 'Untitled Folder' : 'untitled'
162162
);
163-
const ext = options?.ext || 'txt';
163+
const ext = type === 'notebook' ? 'ipynb' : options?.ext || 'txt';
164164

165165
const parentHandle = await this.getParentHandle(path);
166166

0 commit comments

Comments
 (0)