This commit is contained in:
parent
4acc006b13
commit
01940692c4
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export const newFile = (notebookId?: string, currentPath?: string, paths?: strin
|
|||
} else {
|
||||
fetchPost("/api/filetree/getHPathByPath", {
|
||||
notebook: notebookId,
|
||||
path: currentPath
|
||||
path: currentPath.endsWith(".sy") ? currentPath : currentPath + ".sy"
|
||||
}, (responseHPath) => {
|
||||
fetchPost("/api/filetree/createDocWithMd", {
|
||||
notebook: notebookId,
|
||||
|
|
Loading…
Add table
Reference in a new issue