We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5baa483 commit 10b52a7Copy full SHA for 10b52a7
src/notebooks/deepnote/deepnoteExplorerView.ts
@@ -109,7 +109,11 @@ export class DeepnoteExplorerView {
109
return;
110
}
111
112
- const existingNames = new Set(projectData.project.notebooks.map((nb: DeepnoteNotebook) => nb.name));
+ const existingNames = new Set(
113
+ projectData.project.notebooks
114
+ .map((nb: DeepnoteNotebook) => nb.name)
115
+ .filter((name: string) => name !== currentName)
116
+ );
117
118
const newName = await this.promptForNotebookName(currentName, existingNames);
119
0 commit comments