This commit is contained in:
Vanessa 2023-02-04 09:51:24 +08:00
parent c3d3cb189c
commit 25bb76f586
4 changed files with 12 additions and 12 deletions

View file

@ -82,7 +82,7 @@ export const newFile = (notebookId?: string, currentPath?: string, paths?: strin
});
}
} else {
let title = data.data.path || "Untitled"
let title = data.data.path || "Untitled";
title = title.substring(title.lastIndexOf("/") + 1);
if (!validateName(title)) {
return;