Skip to content

Commit 2fd34a3

Browse files
mfisher87arjxn-py
andcommitted
Don't save "unsaved_project" files
Co-authored-by: Arjun Verma <[email protected]>
1 parent 09cfb0f commit 2fd34a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/base/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export function addCommands(
279279
// FIXME: Saves to the currently open directory, while the above save is to the JupyterLab root directory.
280280
// FIXME: Get "unsaved_project" from a constant
281281
// FIXME: unsaved_project is getting saved even though we're trying not to!
282-
if (oldFilename && oldFilename.endsWith('unsaved_project')) {
282+
if (oldFilename && !oldFilename.endsWith('unsaved_project')) {
283283
app.serviceManager.contents.save(oldFilename, {
284284
content: JSON.stringify(content),
285285
format: 'text',

0 commit comments

Comments
 (0)