mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🚨
This commit is contained in:
parent
c3d3cb189c
commit
25bb76f586
4 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue